From 19d587d8ee2d3d1cc6af0284e934f0a904482026 Mon Sep 17 00:00:00 2001 From: Vijay A Date: Tue, 27 Jul 2021 20:36:48 +0530 Subject: Allow any url in the custom-service to allow for sites like 'http://translate.google.com' to work. --- recipes/franz-custom-website/index.js | 14 ++------------ 1 file changed, 2 insertions(+), 12 deletions(-) (limited to 'recipes/franz-custom-website/index.js') diff --git a/recipes/franz-custom-website/index.js b/recipes/franz-custom-website/index.js index 62f4218..d232644 100644 --- a/recipes/franz-custom-website/index.js +++ b/recipes/franz-custom-website/index.js @@ -2,16 +2,6 @@ module.exports = Franz => class CustomWebsite extends Franz { async validateUrl(url) { - try { - const resp = await window.fetch(url, { - method: 'GET' - }); - return !resp.status.toString().startsWith('4'); - } catch (err) { - console.error(err); - } - - return false; + return true; } - -}; \ No newline at end of file +}; -- cgit v1.2.3-54-g00ecf