21 lines
616 B
JavaScript
Executable file
21 lines
616 B
JavaScript
Executable file
'use strict';
|
|
/**
|
|
* @license Angular v<unknown>
|
|
* (c) 2010-2024 Google LLC. https://angular.io/
|
|
* License: MIT
|
|
*/
|
|
function patchNotifications(Zone) {
|
|
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);
|
|
});
|
|
}
|
|
|
|
patchNotifications(Zone);
|