From 6f5e4a00588aefdda7a5a1cfe70935870e7e234a Mon Sep 17 00:00:00 2001 From: Bennett Date: Tue, 22 Sep 2020 20:56:48 +0200 Subject: Unpack recipes and update recipes icons (#292) Co-authored-by: Amine Mouafik --- uncompressed/mattermost/index.js | 20 -------------------- 1 file changed, 20 deletions(-) delete mode 100644 uncompressed/mattermost/index.js (limited to 'uncompressed/mattermost/index.js') diff --git a/uncompressed/mattermost/index.js b/uncompressed/mattermost/index.js deleted file mode 100644 index 8f814fa..0000000 --- a/uncompressed/mattermost/index.js +++ /dev/null @@ -1,20 +0,0 @@ -"use strict"; - -module.exports = Franz => class Mattermost extends Franz { - async validateUrl(url) { - try { - const resp = await window.fetch(url, { - method: 'GET', - headers: { - 'Content-Type': 'application/json' - } - }); - return resp.status.toString().startsWith('2'); - } catch (err) { - console.error(err); - } - - return false; - } - -}; \ No newline at end of file -- cgit v1.2.3-70-g09d2