Update db.js
This commit is contained in:
parent
8ac52e983a
commit
8626f1f2d9
|
@ -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
|
||||
},
|
||||
|
|
Loading…
Reference in New Issue