Skip to content

Commit d14d3fe

Browse files
committed
typescript workaround for microsoft/TypeScript#14701
1 parent 08bd4a8 commit d14d3fe

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

src/ts/util/notification.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,8 @@ function Notif(appConfig, axe) {
99
this._axe = axe;
1010

1111
if (window['Notification']) {
12-
this.hasPermission = Notification.permission === "granted";
12+
this.hasPermission = (Notification as any).permission === "granted";
13+
// "as any" -- workaround for https://github.com/Microsoft/TypeScript/issues/14701
1314
}
1415
}
1516

0 commit comments

Comments
 (0)