Skip to content
This repository has been archived by the owner on Jul 21, 2021. It is now read-only.

Commit

Permalink
properly set global scope visual when default scope is global
Browse files Browse the repository at this point in the history
  • Loading branch information
gorhill committed Nov 26, 2017
1 parent 9d6d27a commit f2bb21f
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions src/js/popup.js
Original file line number Diff line number Diff line change
Expand Up @@ -1174,11 +1174,11 @@ function initScopeCell() {

function updateScopeCell() {
var specificScope = uDom.nodeFromId('specificScope'),
globalScope = uDom.nodeFromId('globalScope');
var isGlobal = matrixSnapshot.scope === '*';
isGlobal = matrixSnapshot.scope === '*';
document.body.classList.toggle('globalScope', isGlobal);
specificScope.classList.toggle('on', !isGlobal);
globalScope.classList.toggle('on', isGlobal);
for ( var node of uDom.nodeFromId('specificScope').children ) {
uDom.nodeFromId('globalScope').classList.toggle('on', isGlobal);
for ( var node of specificScope.children ) {
node.classList.toggle(
'on',
!isGlobal &&
Expand Down

0 comments on commit f2bb21f

Please sign in to comment.