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 ++------------ recipes/franz-custom-website/package.json | 2 +- 2 files changed, 3 insertions(+), 13 deletions(-) (limited to 'recipes') 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 +}; diff --git a/recipes/franz-custom-website/package.json b/recipes/franz-custom-website/package.json index ca1dd0d..47356d0 100644 --- a/recipes/franz-custom-website/package.json +++ b/recipes/franz-custom-website/package.json @@ -1,7 +1,7 @@ { "id": "franz-custom-website", "name": "Custom Website", - "version": "1.0.3", + "version": "1.0.4", "description": "Add a custom website to Franz", "main": "index.js", "author": "Stefan Malzner ", -- cgit v1.2.3-54-g00ecf