aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--background_scripts/main.coffee5
1 files changed, 4 insertions, 1 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee
index b390fe1c..73e31c7e 100644
--- a/background_scripts/main.coffee
+++ b/background_scripts/main.coffee
@@ -245,7 +245,10 @@ moveTab = (callback, direction) ->
# 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) -> openUrlInNewTab { url: Settings.get("newTabUrl") }, callback
+ createTab: (callback) ->
+ url = Settings.get "newTabUrl"
+ url = chrome.runtime.getURL url if url == "pages/blank.html"
+ openUrlInNewTab { url }, callback
duplicateTab: (callback) ->
chrome.tabs.getSelected(null, (tab) ->
chrome.tabs.duplicate(tab.id)