chore: rm polyfill

This commit is contained in:
GyDi 2022-11-19 01:22:00 +08:00
parent f425fbaf9d
commit f33c419ed9
No known key found for this signature in database
GPG Key ID: 9C3AD40F1F99880A
2 changed files with 0 additions and 22 deletions

View File

@ -1,7 +1,6 @@
/// <reference types="vite/client" /> /// <reference types="vite/client" />
/// <reference types="vite-plugin-svgr/client" /> /// <reference types="vite-plugin-svgr/client" />
import "./assets/styles/index.scss"; import "./assets/styles/index.scss";
import "@/utils/polyfill";
import React from "react"; import React from "react";
import ReactDOM from "react-dom"; import ReactDOM from "react-dom";

View File

@ -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 {};