aboutsummaryrefslogtreecommitdiffstats
path: root/uncompressed/mattermost/index.js
diff options
context:
space:
mode:
Diffstat (limited to 'uncompressed/mattermost/index.js')
-rw-r--r--uncompressed/mattermost/index.js20
1 files changed, 0 insertions, 20 deletions
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 @@
1"use strict";
2
3module.exports = Franz => class Mattermost extends Franz {
4 async validateUrl(url) {
5 try {
6 const resp = await window.fetch(url, {
7 method: 'GET',
8 headers: {
9 'Content-Type': 'application/json'
10 }
11 });
12 return resp.status.toString().startsWith('2');
13 } catch (err) {
14 console.error(err);
15 }
16
17 return false;
18 }
19
20}; \ No newline at end of file