1
0
Fork 0
mirror of https://github.com/gorhill/uMatrix.git synced 2024-06-14 08:15:03 +12:00

fix regression: ability to toggle per-scope switches

This commit is contained in:
Raymond Hill 2017-12-16 10:45:50 -05:00
parent 6581071b01
commit f459f67e72
No known key found for this signature in database
GPG key ID: 25E1490B761470C2

View file

@ -1203,8 +1203,8 @@ function updateMatrixSwitches() {
}
function toggleMatrixSwitch(ev) {
if ( ev.target.localName === 'a' ) { return; }
var elem = ev.currentTarget;
if ( elem.target.localName === 'a' ) { return; }
var pos = elem.id.indexOf('_');
if ( pos === -1 ) { return; }
var switchName = elem.id.slice(pos + 1);