From 568eaceb6ddd4e9bf1b42cd6b20f5d001f98caa5 Mon Sep 17 00:00:00 2001 From: Kushagra Gour Date: Wed, 4 Jan 2017 02:47:09 +0530 Subject: [PATCH] eslint fixes. --- .eslintrc.json | 2 +- src/script.js | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) 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 () {});