mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 17:15:38 +08:00
build: polyfills
This commit is contained in:
@@ -8,28 +8,11 @@
|
||||
type="image/x-icon"
|
||||
/>
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
||||
<meta
|
||||
http-equiv="Content-Security-Policy"
|
||||
content="default-src * 'unsafe-inline' 'unsafe-eval' data: blob:;"
|
||||
/>
|
||||
<title>Clash Verge</title>
|
||||
<script>
|
||||
(function () {
|
||||
var _matchMedia = window.matchMedia;
|
||||
window.matchMedia = function () {
|
||||
var v = _matchMedia.apply(null, arguments);
|
||||
if (!v.addEventListener) {
|
||||
v.addEventListener = function () {
|
||||
if (arguments.length < 2 || arguments[0] !== "change") {
|
||||
console.error("Cannot proxy addEventListener:", arguments);
|
||||
return;
|
||||
}
|
||||
if (arguments.length > 2) {
|
||||
console.warn("Proxy addEventListener:", arguments);
|
||||
}
|
||||
v.addListener(arguments[1]);
|
||||
};
|
||||
}
|
||||
return v;
|
||||
};
|
||||
})();
|
||||
</script>
|
||||
</head>
|
||||
<body>
|
||||
<div id="root"></div>
|
||||
|
||||
Reference in New Issue
Block a user