From 6ac94611860a5b1bf8b584b9e3b1b29893297bca Mon Sep 17 00:00:00 2001 From: Luke Crouch Date: Fri, 22 Jan 2021 11:45:56 -0600 Subject: [PATCH] eslint fixes --- src/content_script.js | 4 ++-- src/panel.js | 2 -- test/.eslintrc.js | 26 +++++++++++++------------- test/functional/.eslintrc.js | 2 +- 4 files changed, 16 insertions(+), 18 deletions(-) diff --git a/src/content_script.js b/src/content_script.js index 8b7fccad..ce397136 100755 --- a/src/content_script.js +++ b/src/content_script.js @@ -288,12 +288,12 @@ function addFacebookBadge (target, badgeClassUId, socialAction) { }); // Add to Container "Allow" - htmlEmailBadgeFragmentPromptButtonTry.addEventListener("click", (e) => { + htmlEmailBadgeFragmentPromptButtonTry.addEventListener("click", () => { window.open("https://relay.firefox.com"); }); // Open learn more link - htmlEmailBadgeFragmentPromptButtonLearn.addEventListener("click", (e) => { + htmlEmailBadgeFragmentPromptButtonLearn.addEventListener("click", () => { window.open("https://support.mozilla.org/en-US/kb/facebook-container-prevent-facebook-tracking#w_how-does-email-tracking-work"); }); } else if (socialAction === "share-passive") { diff --git a/src/panel.js b/src/panel.js index 05ce41c9..8c59c3cd 100644 --- a/src/panel.js +++ b/src/panel.js @@ -1,5 +1,3 @@ -/* global browser */ - // TODO // Send message to background.js the first time that onboarding "Done" button is clicked and onboarding has been completed. diff --git a/test/.eslintrc.js b/test/.eslintrc.js index 4d11756b..f4c0c7a7 100644 --- a/test/.eslintrc.js +++ b/test/.eslintrc.js @@ -1,14 +1,14 @@ module.exports = { - "parserOptions": { - "ecmaVersion": 8 - }, - "env": { - "node": true, - "mocha": true - }, - "globals": { - "expect": false, - "loadWebExtension": false, - "sinon": false - } -}; \ No newline at end of file + "parserOptions": { + "ecmaVersion": 8 + }, + "env": { + "node": true, + "mocha": true + }, + "globals": { + "expect": false, + "loadWebExtension": false, + "sinon": false + } +}; diff --git a/test/functional/.eslintrc.js b/test/functional/.eslintrc.js index 9ac3cae3..70afda3d 100644 --- a/test/functional/.eslintrc.js +++ b/test/functional/.eslintrc.js @@ -5,4 +5,4 @@ module.exports = { By: false, internalUUID: false } -} \ No newline at end of file +};