Skip to content

Commit

Permalink
Merge branch 'refs/heads/main' into prod/festapp
Browse files Browse the repository at this point in the history
  • Loading branch information
miakh committed Aug 2, 2024
2 parents bfe56d3 + b84a7d7 commit 0ab717e
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions web/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
<title>Festapp</title>
<script>
if (typeof navigator.serviceWorker !== 'undefined') {
navigator.serviceWorker.register('OneSignalSDKWorker.js?v=2')
navigator.serviceWorker.register('./push/OneSignalSDKWorker.js?v=2')
.then(function(registration) {
console.log('Service Worker registered with scope:', registration.scope);
})
Expand All @@ -64,7 +64,8 @@
title: "Notifikace",
message: "Děkujeme za povolení notifikací.",
},
serviceWorkerPath: "./OneSignalSDKWorker.js",
serviceWorkerParam: { scope: "/push/" },
serviceWorkerPath: "./push/OneSignalSDKWorker.js",
});

OneSignal.Notifications.addEventListener('foregroundWillDisplay', function(event) {
Expand Down
File renamed without changes.

0 comments on commit 0ab717e

Please sign in to comment.