diff options
author | Feuerfuchs <git@feuerfuchs.dev> | 2019-07-01 11:20:09 +0200 |
---|---|---|
committer | Feuerfuchs <git@feuerfuchs.dev> | 2019-07-01 11:20:09 +0200 |
commit | ba57b713bc7c875a44e6a00fce171ef3eb5e6c09 (patch) | |
tree | 111e16d4bb56351352c1a60e35696fb534d318ce /js | |
parent | Remove web+ from protocol registration (diff) | |
download | gopherproxy-ba57b713bc7c875a44e6a00fce171ef3eb5e6c09.tar.gz gopherproxy-ba57b713bc7c875a44e6a00fce171ef3eb5e6c09.tar.bz2 gopherproxy-ba57b713bc7c875a44e6a00fce171ef3eb5e6c09.zip |
Protocol handlers for gopher are not supported by browsers
Diffstat (limited to 'js')
-rw-r--r-- | js/main.ts | 4 |
1 files changed, 0 insertions, 4 deletions
@@ -2,10 +2,6 @@ | |||
2 | 2 | ||
3 | // | 3 | // |
4 | 4 | ||
5 | if ('registerProtocolHandler' in navigator) { | ||
6 | (navigator as any).registerProtocolHandler('gopher', 'https://gopher.feuerfuchs.dev/%s', 'Web Gopher Proxy'); | ||
7 | } | ||
8 | |||
9 | function ensureSetting(key: string, defaultValue: string): string { | 5 | function ensureSetting(key: string, defaultValue: string): string { |
10 | let strValue = localStorage.getItem(key); | 6 | let strValue = localStorage.getItem(key); |
11 | if (strValue === null) { | 7 | if (strValue === null) { |