code cleanup (MisskeyIO#825)
This commit is contained in:
parent
029d6da7c8
commit
e7afbd140a
22 changed files with 24 additions and 25 deletions
|
@ -33,7 +33,7 @@
|
|||
}
|
||||
|
||||
//#region Detect language & fetch translations
|
||||
if (!localStorage.hasOwnProperty('locale')) {
|
||||
if (!Object.hasOwn(localStorage, 'locale')) {
|
||||
let lang = localStorage.getItem('lang');
|
||||
if (lang == null || lang.toString == null || lang.toString() === 'null') {
|
||||
lang = 'ja-JP';
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue