diff options
Diffstat (limited to 'uncompressed/franz-custom-website/index.js')
-rw-r--r-- | uncompressed/franz-custom-website/index.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/uncompressed/franz-custom-website/index.js b/uncompressed/franz-custom-website/index.js index 86c3227..62f4218 100644 --- a/uncompressed/franz-custom-website/index.js +++ b/uncompressed/franz-custom-website/index.js | |||
@@ -6,7 +6,7 @@ module.exports = Franz => class CustomWebsite extends Franz { | |||
6 | const resp = await window.fetch(url, { | 6 | const resp = await window.fetch(url, { |
7 | method: 'GET' | 7 | method: 'GET' |
8 | }); | 8 | }); |
9 | return resp.status.toString().startsWith('2'); | 9 | return !resp.status.toString().startsWith('4'); |
10 | } catch (err) { | 10 | } catch (err) { |
11 | console.error(err); | 11 | console.error(err); |
12 | } | 12 | } |