Browse Source
fix regression: ability to toggle per-scope switches
pull/2/head
Raymond Hill
7 years ago
No known key found for this signature in database
GPG Key ID: 25E1490B761470C2
1 changed files with
1 additions and
1 deletions
-
src/js/popup.js
|
|
@ -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); |
|
|
|