You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
window.matchMedia('(prefers-color-scheme: dark)').addEventListener will work in Edge when I change the browser appearance color,but it does not work in Google Chrome when I change the browser appearance.
code
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', function () {
console.log('change')
})
window.matchMedia('(prefers-color-scheme: dark)').addEventListener will work in Edge when I change the browser appearance color,but it does not work in Google Chrome when I change the browser appearance.
code
the chrome issue link:https://issues.chromium.org/issues/40642550
The text was updated successfully, but these errors were encountered: