mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2024-11-16 03:32:36 +08:00
chore: rm polyfill
This commit is contained in:
parent
f425fbaf9d
commit
f33c419ed9
|
@ -1,7 +1,6 @@
|
|||
/// <reference types="vite/client" />
|
||||
/// <reference types="vite-plugin-svgr/client" />
|
||||
import "./assets/styles/index.scss";
|
||||
import "@/utils/polyfill";
|
||||
|
||||
import React from "react";
|
||||
import ReactDOM from "react-dom";
|
||||
|
|
|
@ -1,21 +0,0 @@
|
|||
// matchMedia polyfill for macOS 10.15
|
||||
if (
|
||||
window.MediaQueryList &&
|
||||
!window.MediaQueryList.prototype.addEventListener
|
||||
) {
|
||||
window.MediaQueryList.prototype.addEventListener = function (
|
||||
name: string,
|
||||
callback: any
|
||||
) {
|
||||
this.addListener(callback);
|
||||
};
|
||||
|
||||
window.MediaQueryList.prototype.removeEventListener = function (
|
||||
name: string,
|
||||
callback: any
|
||||
) {
|
||||
this.removeListener(callback);
|
||||
};
|
||||
}
|
||||
|
||||
export {};
|
Loading…
Reference in New Issue
Block a user