aboutsummaryrefslogtreecommitdiffstats
path: root/background_scripts
diff options
context:
space:
mode:
authorPhil Crosby2012-09-01 23:47:22 -0700
committerPhil Crosby2012-09-01 23:47:22 -0700
commitc8d31bfd02c5fc17b821e1c4b763c11aad56226e (patch)
tree7645690ce221d193f701aa9090cdc11bdfb38cc9 /background_scripts
parent879ff43d9f0b6c4f75dd86d643addf63581dee79 (diff)
downloadvimium-c8d31bfd02c5fc17b821e1c4b763c11aad56226e.tar.bz2
Specifically create a "newtab" page, as suggested by #630
Diffstat (limited to 'background_scripts')
-rw-r--r--background_scripts/main.coffee2
1 files changed, 1 insertions, 1 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index 56b6e313..24e7dc79 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -226,7 +226,7 @@ repeatFunction = (func, totalCount, currentCount, frameId) ->
# These are commands which are bound to keystroke which must be handled by the background page. They are
# mapped in commands.coffee.
BackgroundCommands =
- createTab: (callback) -> chrome.tabs.create({}, (tab) -> callback())
+ createTab: (callback) -> chrome.tabs.create({ url: "chrome://newtab" }, (tab) -> callback())
nextTab: (callback) -> selectTab(callback, "next")
previousTab: (callback) -> selectTab(callback, "previous")
firstTab: (callback) -> selectTab(callback, "first")