Skip to content
Snippets Groups Projects
Unverified Commit 292d6a61 authored by ronaldtebrake's avatar ronaldtebrake Committed by GitHub
Browse files

Merge pull request #3 from goalgorilla/feature/#3027335-fix-chrome-background-notifications

#3027335 by ronaldtebrake: return the promise on send notification
parents 40b577d9 f6cf802d
No related branches found
No related tags found
No related merge requests found
......@@ -39,11 +39,11 @@ self.addEventListener('push', function (event) {
}
// The page is still open but unfocused, so focus the tab.
else if (clientList.length > 0) {
sendNotification(data.message, data.icon, data.url);
return sendNotification(data.message, data.icon, data.url);
}
// The page is closed, send a push to retain engagement.
else {
sendNotification(data.message, data.icon, data.url);
return sendNotification(data.message, data.icon, data.url);
}
})
);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment