Update db.js

This commit is contained in:
Aleksandr Statciuk 2021-06-06 13:15:10 +03:00
parent 8ac52e983a
commit 8626f1f2d9
1 changed files with 10 additions and 0 deletions

View File

@ -83,6 +83,11 @@ db.channels = {
})
}
if (!this.nsfw) {
output = output.filter(channel => !channel.isNSFW())
}
this.nsfw = true
this.duplicates = true
this.filter = null
@ -93,6 +98,11 @@ db.channels = {
return this
},
removeNSFW() {
this.nsfw = false
return this
},
all() {
return this.list
},