aboutsummaryrefslogtreecommitdiffhomepage
path: root/background.js
diff options
context:
space:
mode:
authorAjay Ramachandran <[email protected]>2019-10-30 23:32:32 -0400
committerAjay Ramachandran <[email protected]>2019-10-30 23:32:32 -0400
commit69c93a0563c29d98017809306b3cbfb5a7adbec7 (patch)
tree4da2d068979aaa95d48f6a01acbec45fc0fc56da /background.js
parent4e4d50de827dc20f0f51116cf8e82fe36aff1d66 (diff)
downloadSponsorBlock-69c93a0563c29d98017809306b3cbfb5a7adbec7.tar.gz
SponsorBlock-69c93a0563c29d98017809306b3cbfb5a7adbec7.zip
Removed deprecated show install page code
Diffstat (limited to 'background.js')
-rw-r--r--background.js19
1 files changed, 2 insertions, 17 deletions
diff --git a/background.js b/background.js
index 28fd6bb0..2280acd3 100644
--- a/background.js
+++ b/background.js
@@ -42,28 +42,13 @@ chrome.runtime.onMessage.addListener(function (request, sender, callback) {
//add help page on install
chrome.runtime.onInstalled.addListener(function (object) {
- // TODO (shownInstallPage): remove shownInstallPage logic after sufficient amount of time,
- // so that people have time to upgrade and move to shownInstallPage-free code.
chrome.storage.sync.get(["userID", "shownInstallPage"], function(result) {
const userID = result.userID;
- // TODO (shownInstallPage): delete row below
- const shownInstallPage = result.shownInstallPage;
// If there is no userID, then it is the first install.
if (!userID){
- // Show install page, if there is no user id
- // and there is no shownInstallPage.
- // TODO (shownInstallPage): remove this if statement, but leave contents
- if (!shownInstallPage){
- //open up the install page
- chrome.tabs.create({url: chrome.extension.getURL("/help/"+chrome.i18n.getMessage("helpPage"))});
- }
-
- // TODO (shownInstallPage): delete if statement and contents
- // If shownInstallPage is set, remove it.
- if (!!shownInstallPage){
- chrome.storage.sync.remove("shownInstallPage");
- }
+ //open up the install page
+ chrome.tabs.create({url: chrome.extension.getURL("/help/"+chrome.i18n.getMessage("helpPage"))});
//generate a userID
const newUserID = generateUserID();