source: trip-planner-front/node_modules/zone.js/bundles/webapis-rtc-peer-connection.umd.js@ b738035

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

initial commit

  • Property mode set to 100644
File size: 1.3 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(function (factory) {
8 typeof define === 'function' && define.amd ? define(factory) :
9 factory();
10}((function () {
11 'use strict';
12 /**
13 * @license
14 * Copyright Google LLC All Rights Reserved.
15 *
16 * Use of this source code is governed by an MIT-style license that can be
17 * found in the LICENSE file at https://angular.io/license
18 */
19 Zone.__load_patch('RTCPeerConnection', function (global, Zone, api) {
20 var RTCPeerConnection = global['RTCPeerConnection'];
21 if (!RTCPeerConnection) {
22 return;
23 }
24 var addSymbol = api.symbol('addEventListener');
25 var removeSymbol = api.symbol('removeEventListener');
26 RTCPeerConnection.prototype.addEventListener = RTCPeerConnection.prototype[addSymbol];
27 RTCPeerConnection.prototype.removeEventListener = RTCPeerConnection.prototype[removeSymbol];
28 // RTCPeerConnection extends EventTarget, so we must clear the symbol
29 // to allow patch RTCPeerConnection.prototype.addEventListener again
30 RTCPeerConnection.prototype[addSymbol] = null;
31 RTCPeerConnection.prototype[removeSymbol] = null;
32 api.patchEventTarget(global, [RTCPeerConnection.prototype], { useG: false });
33 });
34})));
Note: See TracBrowser for help on using the repository browser.