We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 08bd4a8 commit d14d3feCopy full SHA for d14d3fe
src/ts/util/notification.ts
@@ -9,7 +9,8 @@ function Notif(appConfig, axe) {
9
this._axe = axe;
10
11
if (window['Notification']) {
12
- this.hasPermission = Notification.permission === "granted";
+ this.hasPermission = (Notification as any).permission === "granted";
13
+ // "as any" -- workaround for https://github.com/Microsoft/TypeScript/issues/14701
14
}
15
16
0 commit comments