aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authorStephen Blott2016-02-28 10:14:41 +0000
committerStephen Blott2016-02-28 10:14:41 +0000
commit8adfa7c4ef8357b6cb945354d6da1b7b92615119 (patch)
tree36733db872bb5812987e47e3209add67a1fa626b /background_scripts
parentf6a3bc3aa0c14af41a9b6035cc809071b4a27af1 (diff)
parent1cd93d83258e9dd239186983852d3a3acfc484a5 (diff)
downloadvimium-8adfa7c4ef8357b6cb945354d6da1b7b92615119.tar.bz2
Merge pull request #2014 from smblott-github/record-install-date
Add install date to logging page.
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/main.coffee5
1 files changed, 5 insertions, 0 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index a4162fc7..7c970866 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -658,5 +658,10 @@ showUpgradeMessage = ->
showUpgradeMessage()
+# The install date is shown on the logging page.
+chrome.runtime.onInstalled.addListener ({reason}) ->
+ unless reason in ["chrome_update", "shared_module_update"]
+ chrome.storage.local.set installDate: new Date().toString()
+
root.TabOperations = TabOperations
root.logMessage = logMessage