Selaa lähdekoodia

chore: rm polyfill

GyDi 2 vuotta sitten
vanhempi
commit
f33c419ed9
2 muutettua tiedostoa jossa 0 lisäystä ja 22 poistoa
  1. 0 1
      src/main.tsx
  2. 0 21
      src/utils/polyfill.ts

+ 0 - 1
src/main.tsx

@@ -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";

+ 0 - 21
src/utils/polyfill.ts

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