a zip code crypto-currency system good for red ONLY

webapis-rtc-peer-connection.js 1.4KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. /**
  2. * @license
  3. * Copyright Google Inc. All Rights Reserved.
  4. *
  5. * Use of this source code is governed by an MIT-style license that can be
  6. * found in the LICENSE file at https://angular.io/license
  7. */
  8. (function (global, factory) {
  9. typeof exports === 'object' && typeof module !== 'undefined' ? factory() :
  10. typeof define === 'function' && define.amd ? define(factory) :
  11. (factory());
  12. }(this, (function () { 'use strict';
  13. /**
  14. * @license
  15. * Copyright Google Inc. All Rights Reserved.
  16. *
  17. * Use of this source code is governed by an MIT-style license that can be
  18. * found in the LICENSE file at https://angular.io/license
  19. */
  20. Zone.__load_patch('RTCPeerConnection', function (global, Zone, api) {
  21. var RTCPeerConnection = global['RTCPeerConnection'];
  22. if (!RTCPeerConnection) {
  23. return;
  24. }
  25. var addSymbol = api.symbol('addEventListener');
  26. var removeSymbol = api.symbol('removeEventListener');
  27. RTCPeerConnection.prototype.addEventListener = RTCPeerConnection.prototype[addSymbol];
  28. RTCPeerConnection.prototype.removeEventListener = RTCPeerConnection.prototype[removeSymbol];
  29. // RTCPeerConnection extends EventTarget, so we must clear the symbol
  30. // to allow patch RTCPeerConnection.prototype.addEventListener again
  31. RTCPeerConnection.prototype[addSymbol] = null;
  32. RTCPeerConnection.prototype[removeSymbol] = null;
  33. api.patchEventTarget(global, [RTCPeerConnection.prototype], { useG: false });
  34. });
  35. })));