Skip to content

Commit

Permalink
Improved: condition check for checking notification permission
Browse files Browse the repository at this point in the history
  • Loading branch information
k2maan committed Sep 15, 2023
1 parent 7ed6cec commit d0b771b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/utils/firebase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ const initialiseFirebaseApp = async (
broadcast.onmessage = (event) => {
addNotification({ notification: event.data, isForeground: false });
};
} else if (permission === "denied") {
} else {
alert("You denied notifications.");
}
};
Expand Down

0 comments on commit d0b771b

Please sign in to comment.