diff options
| author | Stephen Blott | 2016-02-22 10:11:52 +0000 |
|---|---|---|
| committer | Stephen Blott | 2016-02-22 10:12:00 +0000 |
| commit | 251496451907801c45b4b794a235030e6ab99ae2 (patch) | |
| tree | 8731b0b890d416b3686b87075b25de92569e0f29 /background_scripts | |
| parent | 5cbc5ad702a01a81b98f8c82edb3b6d227c2c7b5 (diff) | |
| download | vimium-251496451907801c45b4b794a235030e6ab99ae2.tar.bz2 | |
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.
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/main.coffee | 5 |
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 |
