]> git.wh0rd.org - chrome-ext/clearhistory-advance-fork.git/blobdiff - javascript/background.js
chrome-bootstrap: roll to latest release
[chrome-ext/clearhistory-advance-fork.git] / javascript / background.js
index 1a00748bf163281e5f061411caba3f7b7c0990ed..9473cdaa6c40b99fd28d4d2b4e5c31c9bc2b83f3 100644 (file)
@@ -11,7 +11,7 @@ var CONSTANTS = {
    * @type {Array.<number>}
    * @const
    */
-  TIMES: [-1, 1, 2, 24, 168],
+  TIMES: [-1, 1, 2, 24, 168, 336, 720],
   /**
    * The default time (in hours)
    * @type {number}
@@ -29,14 +29,7 @@ var CONSTANTS = {
    * @type {string}
    * @const
    */
-  NO: 'no'
-};
+  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;
-}
+  CLEANER_ALARM: 'auto-cleaner'
+};