Skip to content

Commit

Permalink
this fixes #42
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Apr 12, 2015
1 parent 65f6b36 commit bc49c40
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
4 changes: 2 additions & 2 deletions platform/chromium/vapi-background.js
Original file line number Diff line number Diff line change
Expand Up @@ -88,8 +88,8 @@ vAPI.tabs.registerListeners = function() {
var popupCandidates = Object.create(null);

var PopupCandidate = function(details) {
this.targetTabId = details.tabId;
this.openerTabId = details.sourceTabId;
this.targetTabId = details.tabId.toString();
this.openerTabId = details.sourceTabId.toString();
this.targetURL = details.url;
this.selfDestructionTimer = null;
};
Expand Down
6 changes: 3 additions & 3 deletions src/js/tab.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ housekeep itself.
var gcPeriod = 10 * 60 * 1000;

var TabContext = function(tabId) {
this.tabId = tabId;
this.tabId = tabId.toString();
this.stack = [];
this.rawURL =
this.normalURL =
Expand Down Expand Up @@ -414,8 +414,8 @@ vAPI.tabs.onPopup = function(details) {
//console.debug('vAPI.tabs.onPopup: details = %o', details);

var tabContext = µb.tabContextManager.lookup(details.openerTabId);
var openerURL = details.openerURL || '';
if ( openerURL === '' && tabContext.tabId === details.openerTabId ) {
var openerURL = '';
if ( tabContext.tabId === details.openerTabId ) {
openerURL = tabContext.normalURL;
}

Expand Down

0 comments on commit bc49c40

Please sign in to comment.