diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-11-23 05:43:00 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-11-23 05:43:00 +0900 |
| commit | 3f8ebac466ece8e9598432f3f574ec44e420c03b (patch) | |
| tree | 05114fce9728d6ce1deecc1f2eb8a903a22b0100 /src/web/app/common/scripts/config.ts | |
| parent | :v: (diff) | |
| download | sharkey-3f8ebac466ece8e9598432f3f574ec44e420c03b.tar.gz sharkey-3f8ebac466ece8e9598432f3f574ec44e420c03b.tar.bz2 sharkey-3f8ebac466ece8e9598432f3f574ec44e420c03b.zip | |
なんかもうめっちゃ変えた
Closes #940
Diffstat (limited to 'src/web/app/common/scripts/config.ts')
| -rw-r--r-- | src/web/app/common/scripts/config.ts | 27 |
1 files changed, 0 insertions, 27 deletions
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 -}; |