mirror of
https://github.com/paricafe/misskey.git
synced 2024-11-25 05:06:44 -06:00
iOSで起動できない問題を修正
This commit is contained in:
parent
ffa40227ec
commit
de1ecbaef4
1 changed files with 1 additions and 1 deletions
|
@ -144,7 +144,7 @@ os.init(async () => {
|
||||||
}
|
}
|
||||||
}, false)
|
}, false)
|
||||||
|
|
||||||
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', mql => {
|
window.matchMedia('(prefers-color-scheme: dark)').addListener(mql => {
|
||||||
if (os.store.state.device.syncDeviceDarkMode) {
|
if (os.store.state.device.syncDeviceDarkMode) {
|
||||||
os.store.commit('device/set', { key: 'darkMode', value: mql.matches });
|
os.store.commit('device/set', { key: 'darkMode', value: mql.matches });
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue