aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorStephen Blott2015-03-15 15:49:30 +0000
committerStephen Blott2015-03-15 15:49:30 +0000
commit359c6c3436d08ea0b80c7cdfaa482c04f7592512 (patch)
tree2f6c5f595a07c0a31672a445eb946e9a81991c4e
parent3c175e25651e116857f6ee64655a5c657157b174 (diff)
downloadvimium-359c6c3436d08ea0b80c7cdfaa482c04f7592512.tar.bz2
Note that createTab/pages/blank.html doesn't work in incognito mode.
-rw-r--r--background_scripts/main.coffee2
1 files changed, 2 insertions, 0 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 73e31c7e..30576554 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -247,6 +247,8 @@ moveTab = (callback, direction) ->
BackgroundCommands =
createTab: (callback) ->
url = Settings.get "newTabUrl"
+ # FIXME(smblott). "pages/blank.html" doesn't work in incognito mode. It opens the tab in a
+ # non-incognito-mode window. Perhaps we should just use "chrome://newtab" in that case?
url = chrome.runtime.getURL url if url == "pages/blank.html"
openUrlInNewTab { url }, callback
duplicateTab: (callback) ->