webapis-notification.umd.js 702 B

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