aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTimo Sand2013-02-16 21:33:57 +0000
committerTimo Sand2013-02-16 21:33:57 +0000
commitf88ccb3390b9efff6512e5c0e7d2235ba8b859ed (patch)
tree59a6db0679f784172b527d65d6f0cf5d35dc6cda
parentc781ce942e225c9bc9f172cea54e0e7de6e4bcd0 (diff)
downloadvimium-f88ccb3390b9efff6512e5c0e7d2235ba8b859ed.tar.bz2
Added duplicateTab call
-rw-r--r--background_scripts/main.coffee1
1 files changed, 1 insertions, 0 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index d9229f12..e6951102 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -218,6 +218,7 @@ repeatFunction = (func, totalCount, currentCount, frameId) ->
# mapped in commands.coffee.
BackgroundCommands =
createTab: (callback) -> chrome.tabs.create({ url: "chrome://newtab" }, (tab) -> callback())
+ duplicateTab: (callback) -> chrome.tabs.duplicate(chrome.tabs.getCurrent(), (tab) -> callback())
nextTab: (callback) -> selectTab(callback, "next")
previousTab: (callback) -> selectTab(callback, "previous")
firstTab: (callback) -> selectTab(callback, "first")