From 3f8ebac466ece8e9598432f3f574ec44e420c03b Mon Sep 17 00:00:00 2001 From: syuilo Date: Thu, 23 Nov 2017 05:43:00 +0900 Subject: なんかもうめっちゃ変えた MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Closes #940 --- src/web/app/common/scripts/config.ts | 27 --------------------------- 1 file changed, 27 deletions(-) delete mode 100644 src/web/app/common/scripts/config.ts (limited to 'src/web/app/common/scripts/config.ts') diff --git a/src/web/app/common/scripts/config.ts b/src/web/app/common/scripts/config.ts deleted file mode 100644 index b4801a44de..0000000000 --- a/src/web/app/common/scripts/config.ts +++ /dev/null @@ -1,27 +0,0 @@ -const _url = new URL(location.href); - -const isRoot = _url.host == 'localhost' - ? true - : _url.host.split('.')[0] == 'misskey'; - -const host = isRoot ? _url.host : _url.host.substring(_url.host.indexOf('.') + 1, _url.host.length); -const scheme = _url.protocol; -const url = `${scheme}//${host}`; -const apiUrl = `${scheme}//api.${host}`; -const chUrl = `${scheme}//ch.${host}`; -const devUrl = `${scheme}//dev.${host}`; -const aboutUrl = `${scheme}//about.${host}`; -const statsUrl = `${scheme}//stats.${host}`; -const statusUrl = `${scheme}//status.${host}`; - -export default { - host, - scheme, - url, - apiUrl, - chUrl, - devUrl, - aboutUrl, - statsUrl, - statusUrl -}; -- cgit v1.2.3-freya