From 01842e27948cfa8a94ba5c093a75bb020b2c59f6 Mon Sep 17 00:00:00 2001 From: "JiaLi.Passion" Date: Wed, 13 Jun 2018 18:08:06 +0900 Subject: [PATCH] feat(zone): add zone-patch-electron to patch Electron native APIs in polyfills --- src/polyfills.ts | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/polyfills.ts b/src/polyfills.ts index 4474f2f..96d5645 100644 --- a/src/polyfills.ts +++ b/src/polyfills.ts @@ -72,7 +72,12 @@ import 'core-js/es7/reflect'; */ import 'zone.js/dist/zone-mix'; // Included with Angular CLI. - +/** + * You can load zone-patch-electron to allow electron native APIs + * (Such as dialog/shortcut/menu/getFileIcon/shell/session/ + * desktopCapturer/onEvent) in ngZone + */ +// import 'zone.js/dist/zone-patch-electron'; // add zone-patch-electron to patch Electron native API /*************************************************************************************************** * APPLICATION IMPORTS