mirror of
https://github.com/gorhill/uMatrix.git
synced 2024-07-01 12:30:23 +12:00
fix regression: ability to toggle per-scope switches
This commit is contained in:
parent
6581071b01
commit
f459f67e72
|
@ -1203,8 +1203,8 @@ function updateMatrixSwitches() {
|
||||||
}
|
}
|
||||||
|
|
||||||
function toggleMatrixSwitch(ev) {
|
function toggleMatrixSwitch(ev) {
|
||||||
|
if ( ev.target.localName === 'a' ) { return; }
|
||||||
var elem = ev.currentTarget;
|
var elem = ev.currentTarget;
|
||||||
if ( elem.target.localName === 'a' ) { return; }
|
|
||||||
var pos = elem.id.indexOf('_');
|
var pos = elem.id.indexOf('_');
|
||||||
if ( pos === -1 ) { return; }
|
if ( pos === -1 ) { return; }
|
||||||
var switchName = elem.id.slice(pos + 1);
|
var switchName = elem.id.slice(pos + 1);
|
||||||
|
|
Loading…
Reference in a new issue