Use onEachLazy to iterate DOMTokenList
This commit is contained in:
parent
9b624071d3
commit
20c3627052
@ -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;
|
||||
|
Loading…
x
Reference in New Issue
Block a user