summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorAkihiko Odaki <nekomanma@pixiv.co.jp>2018-03-25 23:10:31 +0900
committerAkihiko Odaki <nekomanma@pixiv.co.jp>2018-03-25 23:10:31 +0900
commita633f184ab40876ee87d6e9c33aa88ec0f494fc0 (patch)
tree1e1e03233d4478ccc060b181a53a3bf12afe6c61 /src
parentPass hostname instead of host to vhost module (diff)
downloadsharkey-a633f184ab40876ee87d6e9c33aa88ec0f494fc0.tar.gz
sharkey-a633f184ab40876ee87d6e9c33aa88ec0f494fc0.tar.bz2
sharkey-a633f184ab40876ee87d6e9c33aa88ec0f494fc0.zip
Allow to use domain whose prefix is not misskey
Diffstat (limited to 'src')
-rw-r--r--src/web/app/boot.js4
1 files changed, 1 insertions, 3 deletions
diff --git a/src/web/app/boot.js b/src/web/app/boot.js
index 2ee61745b0..00ac9daad9 100644
--- a/src/web/app/boot.js
+++ b/src/web/app/boot.js
@@ -27,9 +27,7 @@
// misskey.alice => misskey
// misskey.strawberry.pasta => misskey
// dev.misskey.arisu.tachibana => dev
- let app = url.host == 'localhost'
- ? 'misskey'
- : url.host.split('.')[0];
+ let app = url.host === HOST ? 'misskey' : url.host.substr(0, -HOST.length);
// Detect the user language
// Note: The default language is English