diff options
| author | Stephen Blott | 2016-03-06 07:39:23 +0000 |
|---|---|---|
| committer | Stephen Blott | 2016-03-17 14:26:43 +0000 |
| commit | a7cd51c8b4c6694ec66711535dbba4ba7a3b813b (patch) | |
| tree | 96f658508ef471f6c031a789e9cacaf11ed8a9de | |
| parent | e507eb8e3fc1b7f6a9ff7fb0c46760161997912a (diff) | |
| download | vimium-a7cd51c8b4c6694ec66711535dbba4ba7a3b813b.tar.bz2 | |
Logging; add auto-lauch option.
| -rw-r--r-- | background_scripts/bg_utils.coffee | 2 |
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" |
