Skip to content

Commit

Permalink
Avoid one particular JavaScript error
Browse files Browse the repository at this point in the history
  • Loading branch information
matthiask committed Sep 6, 2018
1 parent 8987d1d commit 32400bd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions debug_toolbar/static/debug_toolbar/js/toolbar.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,13 +155,13 @@
e.classList.add('djSelected');
e.classList.remove('djUnselected');
self.textContent = self.getAttribute('data-toggle-close');
e.querySelector('.djToggleSwitch').textContent = self.textContent;
} else {
e.classList.remove('djSelected');
e.classList.add('djUnselected');
self.textContent = self.getAttribute('data-toggle-open');
e.querySelector('.djToggleSwitch').textContent = self.textContent;
}
var switch_ = e.querySelector('.djToggleSwitch')
if (switch_) switch_.textContent = self.textContent;
});
});

Expand Down

0 comments on commit 32400bd

Please sign in to comment.