aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/main.coffee
diff options
context:
space:
mode:
Diffstat (limited to 'background_scripts/main.coffee')
-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