source: trip-planner-front/node_modules/zone.js/fesm2015/webapis-rtc-peer-connection.js@ 6c1585f

Last change on this file since 6c1585f was 6a3a178, checked in by Ema <ema_spirova@…>, 3 years ago

initial commit

  • Property mode set to 100644
File size: 1.1 KB
Line 
1'use strict';
2/**
3 * @license Angular v12.0.0-next.0
4 * (c) 2010-2020 Google LLC. https://angular.io/
5 * License: MIT
6 */
7/**
8 * @license
9 * Copyright Google LLC All Rights Reserved.
10 *
11 * Use of this source code is governed by an MIT-style license that can be
12 * found in the LICENSE file at https://angular.io/license
13 */
14Zone.__load_patch('RTCPeerConnection', (global, Zone, api) => {
15 const RTCPeerConnection = global['RTCPeerConnection'];
16 if (!RTCPeerConnection) {
17 return;
18 }
19 const addSymbol = api.symbol('addEventListener');
20 const removeSymbol = api.symbol('removeEventListener');
21 RTCPeerConnection.prototype.addEventListener = RTCPeerConnection.prototype[addSymbol];
22 RTCPeerConnection.prototype.removeEventListener = RTCPeerConnection.prototype[removeSymbol];
23 // RTCPeerConnection extends EventTarget, so we must clear the symbol
24 // to allow patch RTCPeerConnection.prototype.addEventListener again
25 RTCPeerConnection.prototype[addSymbol] = null;
26 RTCPeerConnection.prototype[removeSymbol] = null;
27 api.patchEventTarget(global, [RTCPeerConnection.prototype], { useG: false });
28});
Note: See TracBrowser for help on using the repository browser.