1234567891011121314151617 |
- 'use strict';
- Zone.__load_patch('notification', (global, Zone, api) => {
- const Notification = global['Notification'];
- if (!Notification || !Notification.prototype) {
- return;
- }
- const desc = Object.getOwnPropertyDescriptor(Notification.prototype, 'onerror');
- if (!desc || !desc.configurable) {
- return;
- }
- api.patchOnProperties(Notification.prototype, null);
- });
|