123456789101112131415161718192021 |
- 'use strict';
- Zone.__load_patch('RTCPeerConnection', (global, Zone, api) => {
- const RTCPeerConnection = global['RTCPeerConnection'];
- if (!RTCPeerConnection) {
- return;
- }
- const addSymbol = api.symbol('addEventListener');
- const removeSymbol = api.symbol('removeEventListener');
- RTCPeerConnection.prototype.addEventListener = RTCPeerConnection.prototype[addSymbol];
- RTCPeerConnection.prototype.removeEventListener = RTCPeerConnection.prototype[removeSymbol];
-
-
- RTCPeerConnection.prototype[addSymbol] = null;
- RTCPeerConnection.prototype[removeSymbol] = null;
- api.patchEventTarget(global, api, [RTCPeerConnection.prototype], { useG: false });
- });
|