mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-06-17 17:55:00 +12:00
fix #604
This commit is contained in:
parent
fdc9c38f1a
commit
3c539f0ec8
|
@ -1,7 +1,7 @@
|
|||
/*******************************************************************************
|
||||
|
||||
µMatrix - a Chromium browser extension to black/white list requests.
|
||||
Copyright (C) 2014 Raymond Hill
|
||||
uMatrix - a Chromium browser extension to black/white list requests.
|
||||
Copyright (C) 2014-2016 Raymond Hill
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
|
@ -1068,7 +1068,10 @@ function updateMatrixSwitches() {
|
|||
if ( switches.hasOwnProperty(switchName) === false ) {
|
||||
continue;
|
||||
}
|
||||
if ( (enabled = switches[switchName]) ) { count += 1; }
|
||||
enabled = switches[switchName];
|
||||
if ( enabled && switchName !== 'matrix-off' ) {
|
||||
count += 1;
|
||||
}
|
||||
uDom('#mtxSwitch_' + switchName).toggleClass('switchTrue', enabled);
|
||||
}
|
||||
uDom('#buttonMtxSwitches').descendants('span.badge').text(count.toLocaleString());
|
||||
|
|
Loading…
Reference in a new issue