aboutsummaryrefslogtreecommitdiffhomepage
path: root/client/src
diff options
context:
space:
mode:
authorChocobozzz <me@florianbigard.com>2018-02-23 15:49:16 +0100
committerChocobozzz <me@florianbigard.com>2018-02-23 15:49:16 +0100
commit72680feb3442671b88d0b7e40585568678528470 (patch)
tree2215c18a695db2ce7fcd1ea9502f889b84124657 /client/src
parent998acc2215059428fc207ae7f3948038883179b7 (diff)
downloadPeerTube-72680feb3442671b88d0b7e40585568678528470.tar.gz
PeerTube-72680feb3442671b88d0b7e40585568678528470.tar.zst
PeerTube-72680feb3442671b88d0b7e40585568678528470.zip
Don't zone.js patch on requestAnimationFrame
Diffstat (limited to 'client/src')
-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.