Skip to content
This repository was archived by the owner on Feb 26, 2024. It is now read-only.

Commit 67634ae

Browse files
JiaLiPassionmhevery
authored andcommitted
fix(patch): fix #791, fix mediaQuery/Notification patch use wrong global (#792)
1 parent 0c5da04 commit 67634ae

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Diff for: lib/browser/webapis-media-query.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ Zone.__load_patch('mediaQuery', (global: any, Zone: ZoneType, api: _ZonePrivate)
1010
return;
1111
}
1212
api.patchEventTargetMethods(
13-
_global['MediaQueryList'].prototype, 'addListener', 'removeListener',
13+
global['MediaQueryList'].prototype, 'addListener', 'removeListener',
1414
(self: any, args: any[]) => {
1515
return {
1616
useCapturing: false,

Diff for: lib/browser/webapis-notification.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
* found in the LICENSE file at https://angular.io/license
77
*/
88
Zone.__load_patch('notification', (global: any, Zone: ZoneType, api: _ZonePrivate) => {
9-
const Notification = _global['Notification'];
9+
const Notification = global['Notification'];
1010
if (!Notification || !Notification.prototype) {
1111
return;
1212
}

0 commit comments

Comments
 (0)