Skip to content

Commit

Permalink
Update notification handling (#113)
Browse files Browse the repository at this point in the history
* Add staging deployment

* Add production branch configuration

* Add install as app functionality to settings page

* Prevent showing of available moves if dialog is open

* Update worker notification settings and nuget packages

* Update notification handling
  • Loading branch information
JanneMattila committed Jun 30, 2023
1 parent 7ccf875 commit 64f4311
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/MyChess.Client/wwwroot/service-worker.js
Original file line number Diff line number Diff line change
Expand Up @@ -171,9 +171,9 @@ self.addEventListener('push', async (event) => {
if (clientList.length > 0) {
let client = clientList[0];
for (let i = 0; i < clientList.length; i++) {
if (clientList[i].focused) {
//if (clientList[i].focused) {
client = clientList[i];
}
//}
}
client.postMessage(notificationData);
}
Expand Down

0 comments on commit 64f4311

Please sign in to comment.