diff options
| -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) -> |
