aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
-rw-r--r--client/src/polyfills.ts14
1 files changed, 14 insertions, 0 deletions
diff --git a/client/src/polyfills.ts b/client/src/polyfills.ts
index fbe104aa0..fe44c5e22 100644
--- a/client/src/polyfills.ts
+++ b/client/src/polyfills.ts
@@ -56,6 +56,20 @@ import 'core-js/es7/reflect'
56 **/ 56 **/
57// import 'web-animations-js'; // Run `npm install --save web-animations-js`. 57// import 'web-animations-js'; // Run `npm install --save web-animations-js`.
58 58
59/**
60 * By default, zone.js will patch all possible macroTask and DomEvents
61 * user can disable parts of macroTask/DomEvents patch by setting following flags
62 */
63
64(window as any).__Zone_disable_requestAnimationFrame = true; // disable patch requestAnimationFrame
65// (window as any).__Zone_disable_on_property = true; // disable patch onProperty such as onclick
66// (window as any).__zone_symbol__BLACK_LISTED_EVENTS = ['scroll', 'mousemove']; // disable patch specified eventNames
67/*
68* in IE/Edge developer tools, the addEventListener will also be wrapped by zone.js
69* with the following flag, it will bypass `zone.js` patch for IE/Edge
70*/
71// (window as any).__Zone_enable_cross_context_check = true;
72
59 73
60/*************************************************************************************************** 74/***************************************************************************************************
61 * Zone JS is required by default for Angular itself. 75 * Zone JS is required by default for Angular itself.