Skip to content
This repository has been archived by the owner on Nov 28, 2023. It is now read-only.

Commit

Permalink
fix(notification): Remove notification when already accepted
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Einaudi authored and arnaudruffin committed Dec 14, 2016
1 parent 7bf3687 commit 073d87b
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions views/header.jade
Original file line number Diff line number Diff line change
Expand Up @@ -32,9 +32,7 @@ header(role="banner")

script.
function enableNotifications() {
if (jdNotif.isAlreadyGranted()) {
jdNotif.notify("Great!", "Notifications are enabled");
} else if(jdNotif.isNotificationAvailable()){
if(jdNotif.isNotificationAvailable() && !jdNotif.isAlreadyGranted()){
var container = $(".notification-header").first();
var dismiss = container.find(".dismiss-notification").first();
container.show();
Expand Down

0 comments on commit 073d87b

Please sign in to comment.