Skip to content
Snippets Groups Projects
Unverified Commit f33c419e authored by GyDi's avatar GyDi
Browse files

chore: rm polyfill

parent f425fbaf
No related branches found
No related tags found
No related merge requests found
/// <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";
......
// 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 {};
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment