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')
})
Hello! Since this issue appears to be in Chrome and not in Edge and a Chromium issue has already been filed here: https://issues.chromium.org/issues/40642550, I don't think we need to track this issue in the feedback repo for the Microsoft Edge DevTools. Thank you for your feedback!
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: