mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-02 02:14:52 +12:00
this fixes #24
This commit is contained in:
parent
49441de2b6
commit
967707723a
|
@ -393,6 +393,11 @@ function handleFilter(button, leaning) {
|
|||
var cell = button.ancestors('div.matCell');
|
||||
var type = cell.prop('reqType');
|
||||
var desHostname = cell.prop('hostname');
|
||||
// https://github.com/gorhill/uMatrix/issues/24
|
||||
// No hostname can happen -- like with blacklist meta row
|
||||
if ( desHostname === '' ) {
|
||||
return;
|
||||
}
|
||||
var request = {
|
||||
what: getCellAction(desHostname, type, leaning),
|
||||
srcHostname: matrixSnapshot.scope,
|
||||
|
@ -605,7 +610,12 @@ function makeMatrixMetaRowDomain(domain) {
|
|||
/******************************************************************************/
|
||||
|
||||
function renderMatrixMetaCellType(cell, count) {
|
||||
cell.addClass('t1');
|
||||
// https://github.com/gorhill/uMatrix/issues/24
|
||||
// Don't forget to reset cell properties
|
||||
cell.addClass('t1')
|
||||
.prop('reqType', '')
|
||||
.prop('hostname', '')
|
||||
.prop('count', count);
|
||||
if ( count ) {
|
||||
cell.text(count);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue