aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts/bg_utils.coffee
diff options
context:
space:
mode:
authorStephen Blott2016-03-06 07:39:23 +0000
committerStephen Blott2016-03-17 14:26:43 +0000
commita7cd51c8b4c6694ec66711535dbba4ba7a3b813b (patch)
tree96f658508ef471f6c031a789e9cacaf11ed8a9de /background_scripts/bg_utils.coffee
parente507eb8e3fc1b7f6a9ff7fb0c46760161997912a (diff)
downloadvimium-a7cd51c8b4c6694ec66711535dbba4ba7a3b813b.tar.bz2
Logging; add auto-lauch option.
Diffstat (limited to 'background_scripts/bg_utils.coffee')
-rw-r--r--background_scripts/bg_utils.coffee2
1 files changed, 2 insertions, 0 deletions
diff --git a/background_scripts/bg_utils.coffee b/background_scripts/bg_utils.coffee
index 0b6e4338..bff005ab 100644
--- a/background_scripts/bg_utils.coffee
+++ b/background_scripts/bg_utils.coffee
@@ -57,6 +57,8 @@ BgUtils =
log: do ->
loggingPageUrl = chrome.runtime.getURL "pages/logging.html"
console.log "Vimium logging URL:\n #{loggingPageUrl}" if loggingPageUrl? # Do not output URL for tests.
+ # For development, it's sometimes useful to automatically launch the logging page on reload.
+ chrome.windows.create url: loggingPageUrl, focused: false if localStorage.autoLaunchLoggingPage
(message, sender = null) ->
for viewWindow in chrome.extension.getViews {type: "tab"}
if viewWindow.location.pathname == "/pages/logging.html"