From a633f184ab40876ee87d6e9c33aa88ec0f494fc0 Mon Sep 17 00:00:00 2001 From: Akihiko Odaki Date: Sun, 25 Mar 2018 23:10:31 +0900 Subject: Allow to use domain whose prefix is not misskey --- src/web/app/boot.js | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) (limited to 'src') 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 -- cgit v1.2.3-freya