Use early continue style
This commit is contained in:
parent
c11745306b
commit
5099663c37
@ -41,7 +41,10 @@ export function toggleHideAddedAnime(arn: AnimeNotifier, input: HTMLButtonElemen
|
|||||||
// Hides anime that are already in your list.
|
// Hides anime that are already in your list.
|
||||||
export function hideAddedAnime() {
|
export function hideAddedAnime() {
|
||||||
for(let anime of findAll("anime-grid-cell")) {
|
for(let anime of findAll("anime-grid-cell")) {
|
||||||
if(anime.dataset.added === "true") {
|
if(anime.dataset.added !== "true") {
|
||||||
|
continue
|
||||||
|
}
|
||||||
|
|
||||||
if(localStorage.getItem("hide-added-anime") === "true") {
|
if(localStorage.getItem("hide-added-anime") === "true") {
|
||||||
anime.classList.add("anime-grid-cell-hide")
|
anime.classList.add("anime-grid-cell-hide")
|
||||||
} else {
|
} else {
|
||||||
@ -49,7 +52,6 @@ export function hideAddedAnime() {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
|
||||||
|
|
||||||
// Hides anime that are not in your list.
|
// Hides anime that are not in your list.
|
||||||
export function calendarShowAddedAnimeOnly() {
|
export function calendarShowAddedAnimeOnly() {
|
||||||
|
Loading…
Reference in New Issue
Block a user