diff options
author | Einar Egilsson <einar@einaregilsson.com> | 2015-09-18 15:42:21 +0000 |
---|---|---|
committer | Einar Egilsson <einar@einaregilsson.com> | 2015-09-18 15:42:21 +0000 |
commit | b2ba3216ea5dbe6a74fdfa75611fce95c1481316 (patch) | |
tree | 0ed80d05edc5497d64455197a04fabec7aa8d69d /js/popup.js | |
parent | 862d738c79dc6f8188d3f9fefd46c01179041710 (diff) |
Halfway to making Firefox compatible
Diffstat (limited to 'js/popup.js')
-rw-r--r-- | js/popup.js | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/js/popup.js b/js/popup.js index 9aa13cf..1e9d353 100644 --- a/js/popup.js +++ b/js/popup.js @@ -20,7 +20,7 @@ angular.module('popupApp', []).controller('PopupCtrl', ['$scope', function($s) { //switch to open one if we have it to minimize conflicts var url = chrome.extension.getURL('redirector.html'); - + chrome.tabs.query({currentWindow:true, url:url}, function(tabs) { if (tabs.length > 0) { chrome.tabs.update(tabs[0].id, {active:true}, function(tab) { |