diff --git a/src/definitions/modules/nag.js b/src/definitions/modules/nag.js index b669af746c..7c39daa4c6 100644 --- a/src/definitions/modules/nag.js +++ b/src/definitions/modules/nag.js @@ -146,8 +146,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: {