diff options
| author | Stephen Blott | 2015-03-05 10:28:36 +0000 |
|---|---|---|
| committer | Stephen Blott | 2015-03-05 10:28:36 +0000 |
| commit | c2638cd00b19e04bdfed164de6b1a3d4051cfbd9 (patch) | |
| tree | cb18a8b2005197e89461cad8affdabb6015e01b3 /background_scripts | |
| parent | ffc6d39c6e739468539c579806d897b27fbcd4bd (diff) | |
| download | vimium-c2638cd00b19e04bdfed164de6b1a3d4051cfbd9.tar.bz2 | |
Quick fix for issue creating new tabs.
This is a quick fix only (to keep master in a functional state).
openUrlInNewTab is broken, and needs to be refactored.
Diffstat (limited to 'background_scripts')
| -rw-r--r-- | background_scripts/main.coffee | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/background_scripts/main.coffee b/background_scripts/main.coffee index 97bb444b..23950e6e 100644 --- a/background_scripts/main.coffee +++ b/background_scripts/main.coffee @@ -157,6 +157,9 @@ openUrlInNewTab = (request, callback) -> index: tab.index + 1 selected: true windowId: tab.windowId + # FIXME(smblott). openUrlInNewTab is being called in two different ways with different arguments. We + # should refactor it such that this check on callback isn't necessary. + callback = (->) unless typeof callback == "function" chrome.tabs.create tabConfig, callback openUrlInIncognito = (request) -> |
