Skip to content

Commit

Permalink
Web: mock Notification API if it's not available on a device
Browse files Browse the repository at this point in the history
  • Loading branch information
bashor committed May 22, 2024
1 parent 38e3598 commit a799c66
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions shared/src/webMain/resources/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -138,6 +138,12 @@
}).join("-")
};
}
if (typeof Notification == "undefined") {
self.Notification = class Notification {
static permission = "default";
static requestPermission() {}
}
}
</script>

<script type="application/javascript">
Expand Down

0 comments on commit a799c66

Please sign in to comment.