Skip to content

Commit

Permalink
fix(nag): fetch missing event on manual dismiss call
Browse files Browse the repository at this point in the history
  • Loading branch information
lubber-de committed Feb 10, 2024
1 parent e4ff553 commit ce7f2e0
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions src/definitions/modules/nag.js
Original file line number Diff line number Diff line change
Expand Up @@ -144,8 +144,10 @@
module.debug('Dismissing nag', settings.storageMethod, settings.key, settings.value, settings.expires);
module.storage.set(settings.key, settings.value);
}
event.stopImmediatePropagation();
event.preventDefault();
if (event) {
event.stopImmediatePropagation();
event.preventDefault();
}
},

should: {
Expand Down

0 comments on commit ce7f2e0

Please sign in to comment.