From a7cd51c8b4c6694ec66711535dbba4ba7a3b813b Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Sun, 6 Mar 2016 07:39:23 +0000 Subject: Logging; add auto-lauch option. --- background_scripts/bg_utils.coffee | 2 ++ 1 file changed, 2 insertions(+) (limited to 'background_scripts') 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" -- cgit v1.2.3