Use onEachLazy to iterate DOMTokenList
This commit is contained in:
parent
9b624071d3
commit
20c3627052
1 changed files with 1 additions and 1 deletions
|
@ -1281,7 +1281,7 @@ function hideThemeButtonState() {
|
||||||
if (currentType) {
|
if (currentType) {
|
||||||
currentType = currentType.getElementsByClassName("rust")[0];
|
currentType = currentType.getElementsByClassName("rust")[0];
|
||||||
if (currentType) {
|
if (currentType) {
|
||||||
currentType.classList.forEach(function(item) {
|
onEachLazy(currentType.classList, function(item) {
|
||||||
if (item !== "main") {
|
if (item !== "main") {
|
||||||
className = item;
|
className = item;
|
||||||
return true;
|
return true;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue