This commit is contained in:
syuilo 2017-06-07 02:01:06 +09:00
parent 8f5bdd34a8
commit 4539655c5d

View File

@ -12,7 +12,7 @@
'use strict'; 'use strict';
// Get the current url information // Get the current url information
const Url = new URL(location.href); const url = new URL(location.href);
// Extarct the (sub) domain part of the current url // Extarct the (sub) domain part of the current url
// //
@ -20,7 +20,7 @@ const Url = new URL(location.href);
// misskey.alice => misskey // misskey.alice => misskey
// misskey.strawberry.pasta => misskey // misskey.strawberry.pasta => misskey
// dev.misskey.alice.tachibana => dev // dev.misskey.alice.tachibana => dev
let app = Url.host.split('.')[0]; let app = url.host.split('.')[0];
// Detect the user language // Detect the user language
// Note: The default language is English // Note: The default language is English