From 251496451907801c45b4b794a235030e6ab99ae2 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Mon, 22 Feb 2016 10:11:52 +0000 Subject: Add install date to logging page. This implements a poor-man's build info. See #1352. Unfortunately, that requires a separate build target, and does not work with `cake autobuild`. This just records the *install date* and displays that info on the logging page. "Install date" because we can reliably determine it, and because it does answer the question *have I upgrade Vimium on this machine since last week?*. And on the logging page because that's out of the way, and not part of the regular Vimium interface. --- background_scripts/main.coffee | 5 +++++ 1 file changed, 5 insertions(+) (limited to 'background_scripts') 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 -- cgit v1.2.3