Allow to use domain whose prefix is not misskey

This commit is contained in:
Akihiko Odaki
2018-03-25 23:10:31 +09:00
parent dc351ef396
commit a633f184ab
2 changed files with 2 additions and 3 deletions

View File

@ -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