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 --- franz-custom-website.tar.gz | Bin 5541 -> 5558 bytes uncompressed/franz-custom-website/index.js | 2 +- 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/franz-custom-website.tar.gz b/franz-custom-website.tar.gz index a2d7879..68153e2 100644 Binary files a/franz-custom-website.tar.gz and b/franz-custom-website.tar.gz differ 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-70-g09d2