diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2018-04-22 17:28:21 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2018-04-22 17:28:21 +0900 |
| commit | 08b8d829f9514fc2cb7a7e5da88831e2a9e376f4 (patch) | |
| tree | e71257e3888d965269c01c46420582f1473681e6 /src/client/app/boot.js | |
| parent | CW (diff) | |
| download | misskey-08b8d829f9514fc2cb7a7e5da88831e2a9e376f4.tar.gz misskey-08b8d829f9514fc2cb7a7e5da88831e2a9e376f4.tar.bz2 misskey-08b8d829f9514fc2cb7a7e5da88831e2a9e376f4.zip | |
ダークモード情報をアカウントではなくブラウザに保存するように
Diffstat (limited to 'src/client/app/boot.js')
| -rw-r--r-- | src/client/app/boot.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/client/app/boot.js b/src/client/app/boot.js index 8a79880fb4..f5a1afec63 100644 --- a/src/client/app/boot.js +++ b/src/client/app/boot.js @@ -61,11 +61,8 @@ } // Dark/Light - const me = JSON.parse(localStorage.getItem('me') || null); - if (me && me.clientSettings) { - if ((app == 'desktop' && me.clientSettings.dark) || (app == 'mobile' && me.clientSettings.darkMobile)) { - document.documentElement.setAttribute('data-darkmode', 'true'); - } + if (localStorage.getItem('darkmode') == 'true') { + document.documentElement.setAttribute('data-darkmode', 'true'); } // Script version |