diff options
| author | Stephen Blott | 2014-11-02 09:16:13 +0000 |
|---|---|---|
| committer | Stephen Blott | 2014-11-02 09:16:13 +0000 |
| commit | d95a79eaf58b33e350cf12442154815131727a73 (patch) | |
| tree | 481373aa92e01b49951f554bb87b836c720d7a04 /background_scripts | |
| parent | 3bae8f0f8fc012720001caced69999160d9005fa (diff) | |
| parent | 474bcb7552dd538978e546f02b2bff1d7204aa34 (diff) | |
| download | vimium-d95a79eaf58b33e350cf12442154815131727a73.tar.bz2 | |
Merge branch 'customNewTabPage' of github.com:mrmr1993/vimium into mrmr1993-customNewTabPage
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/main.coffee | 2 | ||||
| -rw-r--r-- | background_scripts/settings.coffee | 1 |
2 files changed, 2 insertions, 1 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 898f46f1..5c5d3180 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -231,7 +231,7 @@ 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) -> chrome.tabs.create({ url: "chrome://newtab" }, (tab) -> callback()) + createTab: (callback) -> chrome.tabs.create({url: Settings.get("newTabUrl")}, (tab) -> callback()) duplicateTab: (callback) -> chrome.tabs.getSelected(null, (tab) -> chrome.tabs.duplicate(tab.id) diff --git a/background_scripts/settings.coffee b/background_scripts/settings.coffee index 7150fcba..d6e8fcde 100644 --- a/background_scripts/settings.coffee +++ b/background_scripts/settings.coffee @@ -105,6 +105,7 @@ root.Settings = Settings = searchUrl: "http://www.google.com/search?q=" # put in an example search engine searchEngines: "w: http://www.wikipedia.org/w/index.php?title=Special:Search&search=%s" + newTabUrl: "chrome://newtab" settingsVersion: Utils.getCurrentVersion() |
