]>
git.wh0rd.org - chrome-ext/clearhistory-advance-fork.git/blob - javascript/background.js
1 // Copyright 2013 Google Inc. All Rights Reserved.
4 * @fileoverview Background initialization.
5 * @author arunjit@google.com (Arunjit Singh)
10 * The available time ranges (in hours). -1 => eternity.
11 * @type {Array.<number>}
14 TIMES
: [-1, 1, 2, 24, 168],
16 * The default time (in hours)
22 * String for 'yes'. @see {@code CONSTANTS.NO}
28 * String for 'no' that doesn't evaluate to a falsy value.
36 * Go to the options page on first run
38 if (!localStorage
['options-set']) {
39 var optionsPageURL
= chrome
.extension
.getURL('/views/options.html');
40 chrome
.tabs
.create({url
: optionsPageURL
});
41 localStorage
['options-set'] = 1;