aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--all.json2
-rw-r--r--recipes/franz-custom-website/index.js14
-rw-r--r--recipes/franz-custom-website/package.json2
3 files changed, 4 insertions, 14 deletions
diff --git a/all.json b/all.json
index 7587190..69f7ce8 100644
--- a/all.json
+++ b/all.json
@@ -404,7 +404,7 @@
404 "featured": false, 404 "featured": false,
405 "id": "franz-custom-website", 405 "id": "franz-custom-website",
406 "name": "Custom Website", 406 "name": "Custom Website",
407 "version": "1.0.3", 407 "version": "1.0.4",
408 "icons": { 408 "icons": {
409 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/franz-custom-website/icon.svg" 409 "svg": "https://cdn.jsdelivr.net/gh/getferdi/recipes/recipes/franz-custom-website/icon.svg"
410 } 410 }
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 @@
2 2
3module.exports = Franz => class CustomWebsite extends Franz { 3module.exports = Franz => class CustomWebsite extends Franz {
4 async validateUrl(url) { 4 async validateUrl(url) {
5 try { 5 return true;
6 const resp = await window.fetch(url, {
7 method: 'GET'
8 });
9 return !resp.status.toString().startsWith('4');
10 } catch (err) {
11 console.error(err);
12 }
13
14 return false;
15 } 6 }
16 7};
17}; \ 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 @@
1{ 1{
2 "id": "franz-custom-website", 2 "id": "franz-custom-website",
3 "name": "Custom Website", 3 "name": "Custom Website",
4 "version": "1.0.3", 4 "version": "1.0.4",
5 "description": "Add a custom website to Franz", 5 "description": "Add a custom website to Franz",
6 "main": "index.js", 6 "main": "index.js",
7 "author": "Stefan Malzner <stefan@adlk.io>", 7 "author": "Stefan Malzner <stefan@adlk.io>",