Use early return style
This commit is contained in:
parent
9c67a51fb4
commit
a491ac50a1
@ -474,15 +474,17 @@ export default class AnimeNotifier {
|
||||
}
|
||||
}
|
||||
|
||||
// Hides user anime automatically if localStorage.hide is true
|
||||
// Hides anime already existing in the user's anime list automatically
|
||||
hideAddedAnime() {
|
||||
if(!this.app.currentPath.includes("/explore") && !this.app.currentPath.includes("/genre")) {
|
||||
return
|
||||
}
|
||||
|
||||
if(localStorage.getItem("hide-added-anime") === "true") {
|
||||
actions.hideAddedAnime()
|
||||
if(localStorage.getItem("hide-added-anime") !== "true") {
|
||||
return
|
||||
}
|
||||
|
||||
actions.hideAddedAnime()
|
||||
}
|
||||
|
||||
markPlayingSoundTrack() {
|
||||
|
Loading…
Reference in New Issue
Block a user