use cordis@4

This commit is contained in:
undefined committed 2025-02-19 05:28:12 +08:00
1 parent 085b6c9b4c
commit 9264f340cb
18 files changed
+284 -168

No files matched your search

+1 -1
View File
@@ -31,7 +31,7 @@ if (typeof window['WeakRef'] === 'undefined') {
return WeakRef;
}(new WeakMap()));
}
if (!(window.matchMedia('all').addListener || window.matchMedia('all').addEventListener)) {
if (!window.matchMedia('all').addListener && !window.matchMedia('all').addEventListener) {
const localMatchMedia = window.matchMedia;
const hasMediaQueries = localMatchMedia('only all').matches;
let isListening = false;