From 933335960395e481abffd3aed7ad3a9e9961f055 Mon Sep 17 00:00:00 2001 From: Peter deHaan Date: Tue, 31 Jan 2017 09:37:37 -0800 Subject: [PATCH 1/2] Add .jpmignore file --- .jpmignore | 13 +++++++++++++ package.json | 1 + 2 files changed, 14 insertions(+) create mode 100644 .jpmignore diff --git a/.jpmignore b/.jpmignore new file mode 100644 index 0000000..1795cff --- /dev/null +++ b/.jpmignore @@ -0,0 +1,13 @@ +.git/ +docs/ +test/ +node_modules/ + +.env +.eslintrc.js +.gitignore +.htmllintrc +.jpmignore +.stylelintrc +.travis.yml +testpilot-containers.xpi diff --git a/package.json b/package.json index da44e29..34a49f8 100644 --- a/package.json +++ b/package.json @@ -33,6 +33,7 @@ "url": "git+https://github.com/mozilla/testpilot-containers.git" }, "scripts": { + "build": "jpm xpi", "lint": "npm-run-all lint:*", "lint:addon": "addons-linter webextension --self-hosted", "lint:css": "stylelint webextension/css/*.css", From 8fde0c13378bb820a8db8a57032ae0d87b23989a Mon Sep 17 00:00:00 2001 From: Peter deHaan Date: Tue, 31 Jan 2017 09:41:15 -0800 Subject: [PATCH 2/2] Fix ESLint indent errors --- webextension/background.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/webextension/background.js b/webextension/background.js index 9b707c8..805dd0e 100644 --- a/webextension/background.js +++ b/webextension/background.js @@ -13,6 +13,6 @@ browser.tabs.query({}).then(tabs => { }).catch(() => {}); function disableAddon(tabId) { - browser.browserAction.disable(tabId); - browser.browserAction.setTitle({ tabId, title: "Containers disabled in Private Browsing Mode" }); + browser.browserAction.disable(tabId); + browser.browserAction.setTitle({ tabId, title: "Containers disabled in Private Browsing Mode" }); }