From cf2195f318b199fe2d455e77895b96a3d5268081 Mon Sep 17 00:00:00 2001 From: na2na-p Date: Mon, 9 May 2022 16:35:15 +0900 Subject: [PATCH] =?UTF-8?q?=E3=83=AA=E3=83=95=E3=82=A1=E3=82=AF=E3=82=BF?= =?UTF-8?q?=E3=83=AA=E3=83=B3=E3=82=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/modules/menu/index.ts | 19 ------------------- 1 file changed, 19 deletions(-) diff --git a/src/modules/menu/index.ts b/src/modules/menu/index.ts index 57f5390..fc7dd62 100644 --- a/src/modules/menu/index.ts +++ b/src/modules/menu/index.ts @@ -1,7 +1,6 @@ import autobind from 'autobind-decorator'; import Module from '@/module'; import Message from '@/message'; -import fetch from 'node-fetch'; import { JSDOM } from 'jsdom'; export default class extends Module { @@ -41,21 +40,3 @@ export default class extends Module { } } } - -function testUrl(url: string) { - return new Promise((resolve, reject) => { - const xhr = new XMLHttpRequest() - xhr.open('GET', url) - xhr.onload = () => { - if (xhr.status === 200) { - resolve(true) - } else { - reject(false) - } - } - xhr.onerror = () => { - reject(false) - } - xhr.send() - }) -} \ No newline at end of file