diff --git a/frontend/src/global-shim.ts b/frontend/src/global-shim.ts new file mode 100644 index 0000000000..6776c0b79b --- /dev/null +++ b/frontend/src/global-shim.ts @@ -0,0 +1 @@ +(window as any).global = window; diff --git a/frontend/src/polyfills.ts b/frontend/src/polyfills.ts index 9535da8e61..d92f8820b4 100644 --- a/frontend/src/polyfills.ts +++ b/frontend/src/polyfills.ts @@ -16,6 +16,9 @@ /*************************************************************************************************** * BROWSER POLYFILLS */ + +import 'global-shim'; // Add global to window, assigning the value of window itself. + /** IE9, IE10 and IE11 requires all of the following polyfills. **/ import 'core-js/es6/symbol'; import 'core-js/es6/object';