From cfdcf244db8612ea5b200d180ad58a0ceb500311 Mon Sep 17 00:00:00 2001 From: Joep Meindertsma Date: Tue, 15 Oct 2019 10:15:41 +0200 Subject: [PATCH] Fix globalthis #40 --- front/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/front/src/index.tsx b/front/src/index.tsx index 2824c1a..79daef1 100755 --- a/front/src/index.tsx +++ b/front/src/index.tsx @@ -7,7 +7,7 @@ import ReactDOM from "react-dom"; import "./index.css"; import App from "./App"; import * as serviceWorker from "./serviceWorker"; -require('globalthis/polyfill')(); +(window as any).globalThis = require('globalthis/polyfill')() ReactDOM.render(, document.getElementById("root"));