]> git.wh0rd.org - chrome-ext/clearhistory-advance-fork.git/blame - javascript/background.js
add more time choices
[chrome-ext/clearhistory-advance-fork.git] / javascript / background.js
CommitLineData
a5409a6b
MF
1// Copyright 2013 Google Inc. All Rights Reserved.
2
3/**
4 * @fileoverview Background initialization.
5 * @author arunjit@google.com (Arunjit Singh)
6 */
7
8var CONSTANTS = {
9 /**
10 * The available time ranges (in hours). -1 => eternity.
11 * @type {Array.<number>}
12 * @const
13 */
2bf257d4 14 TIMES: [-1, 1, 2, 24, 168, 336, 720],
a5409a6b
MF
15 /**
16 * The default time (in hours)
17 * @type {number}
18 * @const
19 */
20 DEFAULT_TIME: 1,
21 /**
22 * String for 'yes'. @see {@code CONSTANTS.NO}
23 * @type {string}
24 * @const
25 */
26 YES: 'yes',
27 /**
28 * String for 'no' that doesn't evaluate to a falsy value.
29 * @type {string}
30 * @const
31 */
32 NO: 'no'
33};