webapis-notification.js 507 B

1234567891011121314151617
  1. 'use strict';
  2. /**
  3. * @license Angular v<unknown>
  4. * (c) 2010-2022 Google LLC. https://angular.io/
  5. * License: MIT
  6. */
  7. Zone.__load_patch('notification', (global, Zone, api) => {
  8. const Notification = global['Notification'];
  9. if (!Notification || !Notification.prototype) {
  10. return;
  11. }
  12. const desc = Object.getOwnPropertyDescriptor(Notification.prototype, 'onerror');
  13. if (!desc || !desc.configurable) {
  14. return;
  15. }
  16. api.patchOnProperties(Notification.prototype, null);
  17. });