Skip to content

Commit 346f861

Browse files
author
Cody Burleson
committed
Fix for console err: Uncaught ReferenceError: global is not defined
See: angular/angular-cli#8160
1 parent 192ba90 commit 346f861

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

src/polyfills.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -78,3 +78,6 @@ import 'zone.js/dist/zone'; // Included with Angular CLI.
7878
/***************************************************************************************************
7979
* APPLICATION IMPORTS
8080
*/
81+
82+
// Add global to window, assigning the value of window itself.
83+
(window as any).global = window;

0 commit comments

Comments
 (0)