Use onEachLazy to iterate DOMTokenList

This commit is contained in:
Michael Howell 2021-04-19 14:12:40 -07:00
parent 9b624071d3
commit 20c3627052

View File

@ -1281,7 +1281,7 @@ function hideThemeButtonState() {
if (currentType) {
currentType = currentType.getElementsByClassName("rust")[0];
if (currentType) {
currentType.classList.forEach(function(item) {
onEachLazy(currentType.classList, function(item) {
if (item !== "main") {
className = item;
return true;