mirror of
https://activitypub.software/TransFem-org/Sharkey
synced 2024-11-26 16:03:02 +00:00
Refactor
This commit is contained in:
parent
8f5bdd34a8
commit
4539655c5d
1 changed files with 2 additions and 2 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue