diff --git a/src/main.tsx b/src/main.tsx index 851001a..08241f4 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -1,7 +1,6 @@ /// /// import "./assets/styles/index.scss"; -import "@/utils/polyfill"; import React from "react"; import ReactDOM from "react-dom"; diff --git a/src/utils/polyfill.ts b/src/utils/polyfill.ts deleted file mode 100644 index 6849151..0000000 --- a/src/utils/polyfill.ts +++ /dev/null @@ -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 {};