webapis-notification.umd.js 822 B

1234567891011121314151617181920212223242526
  1. 'use strict';
  2. /**
  3. * @license Angular v<unknown>
  4. * (c) 2010-2025 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. function patchNotifications(Zone) {
  13. Zone.__load_patch('notification', function (global, Zone, api) {
  14. var Notification = global['Notification'];
  15. if (!Notification || !Notification.prototype) {
  16. return;
  17. }
  18. var desc = Object.getOwnPropertyDescriptor(Notification.prototype, 'onerror');
  19. if (!desc || !desc.configurable) {
  20. return;
  21. }
  22. api.patchOnProperties(Notification.prototype, null);
  23. });
  24. }
  25. patchNotifications(Zone);
  26. }));