From de1ecbaef41b8376f85ed566d833316c8f816e0f Mon Sep 17 00:00:00 2001 From: syuilo Date: Sun, 22 Mar 2020 19:35:34 +0900 Subject: [PATCH] =?UTF-8?q?iOS=E3=81=A7=E8=B5=B7=E5=8B=95=E3=81=A7?= =?UTF-8?q?=E3=81=8D=E3=81=AA=E3=81=84=E5=95=8F=E9=A1=8C=E3=82=92=E4=BF=AE?= =?UTF-8?q?=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/client/init.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/client/init.ts b/src/client/init.ts index d7b693e4c8..aed7ff85e8 100644 --- a/src/client/init.ts +++ b/src/client/init.ts @@ -144,7 +144,7 @@ os.init(async () => { } }, false) - window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', mql => { + window.matchMedia('(prefers-color-scheme: dark)').addListener(mql => { if (os.store.state.device.syncDeviceDarkMode) { os.store.commit('device/set', { key: 'darkMode', value: mql.matches }); }