]> git.wh0rd.org - chrome-ext/clearhistory-advance-fork.git/commitdiff
do not autoload options page on first install
authorMike Frysinger <vapier@gentoo.org>
Tue, 29 Jan 2013 21:16:50 +0000 (16:16 -0500)
committerMike Frysinger <vapier@gentoo.org>
Wed, 30 Jan 2013 03:40:09 +0000 (22:40 -0500)
This is annoying behavior when sync is enabled and extensions get auto
installed in the background.

javascript/background.js

index 1a00748bf163281e5f061411caba3f7b7c0990ed..36974bc012b09351c923f1bd3109047ffb0652c0 100644 (file)
@@ -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;
-}