Skip to content

Commit

Permalink
More tweaks to webpush settings
Browse files Browse the repository at this point in the history
  • Loading branch information
nathanmsmith committed May 8, 2023
1 parent 0181d0d commit 8899648
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions app/javascript/utilities/webpushNotifications.ts
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ export async function registerServiceWorker() {

export async function subscribeToPush(): Promise<Device> {
const permission = await Notification.requestPermission()
console.log('permission: ', permission)
if (permission !== 'granted') {
throw new Error('Permission was not granted. Please allow notifications from Hotseat.')
}
Expand Down
1 change: 1 addition & 0 deletions public/manifest.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "Hotseat",
"display": "standalone",
"icons": [
{
"src": "/images/icons-vector.svg",
Expand Down

0 comments on commit 8899648

Please sign in to comment.