From f7422c3a9a02553991e9b96d03b76aed1173e71c Mon Sep 17 00:00:00 2001 From: Amine Mouafik Date: Sat, 22 Feb 2020 21:34:12 +0100 Subject: Validate all https responses different from 4xx --- uncompressed/franz-custom-website/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'uncompressed') 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 { const resp = await window.fetch(url, { method: 'GET' }); - return resp.status.toString().startsWith('2'); + return !resp.status.toString().startsWith('4'); } catch (err) { console.error(err); } -- cgit v1.2.3-54-g00ecf