diff options
Diffstat (limited to 'js')
-rw-r--r-- | js/main.ts | 4 |
1 files changed, 4 insertions, 0 deletions
@@ -2,6 +2,10 @@ | |||
2 | 2 | ||
3 | // | 3 | // |
4 | 4 | ||
5 | if ('registerProtocolHandler' in navigator) { | ||
6 | (navigator as any).registerProtocolHandler('web+gopher', 'https://gopher.feuerfuchs.dev/%s', 'Web Gopher Proxy'); | ||
7 | } | ||
8 | |||
5 | function ensureSetting(key: string, defaultValue: string): string { | 9 | function ensureSetting(key: string, defaultValue: string): string { |
6 | let strValue = localStorage.getItem(key); | 10 | let strValue = localStorage.getItem(key); |
7 | if (strValue === null) { | 11 | if (strValue === null) { |