From c2638cd00b19e04bdfed164de6b1a3d4051cfbd9 Mon Sep 17 00:00:00 2001 From: Stephen Blott Date: Thu, 5 Mar 2015 10:28:36 +0000 Subject: 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. --- background_scripts/main.coffee | 3 +++ 1 file changed, 3 insertions(+) (limited to 'background_scripts') 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) -> -- cgit v1.2.3