Skip to content
This repository was archived by the owner on Feb 8, 2023. It is now read-only.

Fix undefined global console error #285

Merged
merged 3 commits into from
Jul 27, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions frontend/src/global-shim.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
(window as any).global = window;
3 changes: 3 additions & 0 deletions frontend/src/polyfills.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down