From f459f67e723ff7f82b84d09195b8ce356b08ce96 Mon Sep 17 00:00:00 2001 From: Raymond Hill Date: Sat, 16 Dec 2017 10:45:50 -0500 Subject: [PATCH] fix regression: ability to toggle per-scope switches --- src/js/popup.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/js/popup.js b/src/js/popup.js index abbe3b0..6e6c395 100644 --- a/src/js/popup.js +++ b/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);