diff options
| author | syuilo <Syuilotan@yahoo.co.jp> | 2018-03-25 23:12:29 +0900 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2018-03-25 23:12:29 +0900 |
| commit | a23790a1e845a0552ebc795738d6638e6868fe4f (patch) | |
| tree | 1e1e03233d4478ccc060b181a53a3bf12afe6c61 /src | |
| parent | Merge pull request #1284 from akihikodaki/master (diff) | |
| parent | Allow to use domain whose prefix is not misskey (diff) | |
| download | sharkey-a23790a1e845a0552ebc795738d6638e6868fe4f.tar.gz sharkey-a23790a1e845a0552ebc795738d6638e6868fe4f.tar.bz2 sharkey-a23790a1e845a0552ebc795738d6638e6868fe4f.zip | |
Merge pull request #1286 from akihikodaki/master
Allow to use domain whose prefix is not misskey
Diffstat (limited to 'src')
| -rw-r--r-- | src/web/app/boot.js | 4 |
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 |