Skip to content

Commit

Permalink
Resolving #434
Browse files Browse the repository at this point in the history
  • Loading branch information
MeoMix committed May 6, 2015
1 parent 98429e6 commit c50b915
Showing 1 changed file with 4 additions and 11 deletions.
15 changes: 4 additions & 11 deletions src/js/background/model/tabManager.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,16 +30,6 @@
});
},

isStreamusTabOpen: function(callback) {
var queryInfo = {
url: this.get('streamusForegroundUrl')
};

this._queryTabs(queryInfo, function(tabs) {
callback(tabs.length > 0);
});
},

showStreamusTab: function() {
this._showTab(this.get('streamusForegroundUrl'));
},
Expand All @@ -58,7 +48,10 @@

_showTab: function(urlPattern, url) {
var queryInfo = {
url: urlPattern
url: urlPattern,
// It's possible for a tab to be open in another window.
// Instead of bringing that window to the foreground -- just assume tab isn't visible.
currentWindow: true
};

this._queryTabs(queryInfo, function(tabDetailsList) {
Expand Down

0 comments on commit c50b915

Please sign in to comment.