diff --git a/.eslintrc.json b/.eslintrc.json index 7425573..0119c1e 100644 --- a/.eslintrc.json +++ b/.eslintrc.json @@ -81,7 +81,7 @@ "no-alert": "off", "no-array-constructor": "error", "no-bitwise": "off", - "no-caller": "error", + "no-caller": "off", "no-console": "off", "no-catch-shadow": "error", "no-confusing-arrow": "error", diff --git a/src/script.js b/src/script.js index db31d36..f8658ed 100644 --- a/src/script.js +++ b/src/script.js @@ -364,7 +364,7 @@ settingsBtn, onboardModal, notificationsBtn */ addLibraryModal.classList.remove('is-modal-visible'); onboardModal.classList.remove('is-modal-visible'); toggleSavedItemsPane(false); - document.dispatchEvent( new Event('overlaysClosed')); + document.dispatchEvent(new Event('overlaysClosed')); } /** @@ -947,7 +947,7 @@ settingsBtn, onboardModal, notificationsBtn */ onboardModal.classList.add('is-modal-visible'); trackEvent('ui', 'onboardModalSeen'); // set the current version as seen on closing the onboard modal - utils.once(document, 'overlaysClosed', function (e) { + utils.once(document, 'overlaysClosed', function () { chrome.storage.sync.set({ lastSeenVersion: version }, function () {});