From 3c539f0ec81b6a1a68fb9d53574cb228e02e328c Mon Sep 17 00:00:00 2001 From: gorhill Date: Thu, 11 Aug 2016 19:21:51 -0400 Subject: [PATCH] fix #604 --- src/js/popup.js | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/js/popup.js b/src/js/popup.js index 7e125c6..67f79e0 100644 --- a/src/js/popup.js +++ b/src/js/popup.js @@ -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());