1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-05-19 03:33:17 +12:00
This commit is contained in:
Raymond Hill 2018-10-16 10:58:04 -03:00
parent 0f7c82a2d9
commit 9a6b1c2c9c
3 changed files with 5 additions and 8 deletions

View file

@ -556,7 +556,7 @@ var pageSelectorChanged = function() {
);
}
document.getElementById('reloadTab').classList.toggle('disabled', tabId <= 0);
document.getElementById('popupPanelButton').classList.toggle('disabled', tabId === 0);
document.getElementById('popupPanelButton').classList.toggle('disabled', tabId <= 0);
popupPanel.update();
};
@ -672,7 +672,7 @@ var popupPanel = (function() {
let start = function() {
let newTabId = tabIdFromPageSelector();
if ( newTabId === 0 ) {
if ( newTabId <= 0 ) {
return stop();
}
if ( newTabId === tabId ) { return; }

View file

@ -369,12 +369,7 @@ var matrixSnapshotFromTabId = function(details, callback) {
callback('ENOTFOUND');
return;
}
// Allow examination of behind-the-scene requests
var tabId = tab.url.lastIndexOf(vAPI.getURL('dashboard.html'), 0) !== 0 ?
tab.id :
vAPI.noTabId;
matrixSnapshotIf(tabId, details);
matrixSnapshotIf(tab.id, details);
};
vAPI.tabs.get(null, onTabReady);

View file

@ -208,6 +208,8 @@ PageStore.prototype = {
},
recordRequest: function(type, url, block) {
if ( this.tabId <= 0 ) { return; }
if ( block ) {
this.perLoadBlockedRequestCount++;
} else {