From: Mike Frysinger Date: Tue, 29 Jan 2013 21:16:50 +0000 (-0500) Subject: do not autoload options page on first install X-Git-Tag: v1.5.0~5 X-Git-Url: https://git.wh0rd.org/?a=commitdiff_plain;h=207f54cbc44beccd175b238d64e6d6c25d456c7f;p=chrome-ext%2Fclearhistory-advance-fork.git do not autoload options page on first install This is annoying behavior when sync is enabled and extensions get auto installed in the background. --- diff --git a/javascript/background.js b/javascript/background.js index 1a00748..36974bc 100644 --- a/javascript/background.js +++ b/javascript/background.js @@ -31,12 +31,3 @@ var CONSTANTS = { */ NO: 'no' }; - -/** - * Go to the options page on first run - */ -if (!localStorage['options-set']) { - var optionsPageURL = chrome.extension.getURL('/views/options.html'); - chrome.tabs.create({url: optionsPageURL}); - localStorage['options-set'] = 1; -}