Skip to content
Snippets Groups Projects
Commit 4539655c authored by syuilo's avatar syuilo
Browse files

Refactor

parent 8f5bdd34
No related branches found
No related tags found
No related merge requests found
......@@ -12,7 +12,7 @@
'use strict';
// 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
//
......@@ -20,7 +20,7 @@ const Url = new URL(location.href);
// misskey.alice => misskey
// misskey.strawberry.pasta => misskey
// dev.misskey.alice.tachibana => dev
let app = Url.host.split('.')[0];
let app = url.host.split('.')[0];
// Detect the user language
// Note: The default language is English
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment