ui: add matchMedia().addEventListener polyfill

This commit is contained in:
undefined committed 2022-05-22 02:02:48 +08:00
1 parent 53bde9c966
commit 87a72f35c1
8 files changed
+80 -15

No files matched your search

@@ -42,7 +42,7 @@
var _htmlNode = document.documentElement;
_htmlNode.className = _htmlNode.className.replace(' nojs', ' hasjs');
try {
import('data:text/javascript,');Object.fromEntries([])
import('data:text/javascript,');Object.fromEntries([]);window.matchMedia('all').addEventListener('change',()=>{});
} catch(e) {
const s = document.createElement('script');
s.async = false;