mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Use set for video app list
This commit is contained in:
parent
bacbb825c6
commit
3a2326baa9
3 changed files with 19 additions and 22 deletions
|
|
@ -29,7 +29,7 @@ class BuildLists {
|
|||
// Where Eleventy Enpoints get stored
|
||||
this.eleventyEndpointsSet = new Set()
|
||||
|
||||
this.allVideoAppsList = []
|
||||
this.allVideoAppsList = new Set()
|
||||
}
|
||||
|
||||
listsOptions = [
|
||||
|
|
@ -102,15 +102,10 @@ class BuildLists {
|
|||
]
|
||||
|
||||
getAllVideoAppsList = () => {
|
||||
// return new Set([
|
||||
// ...this.lists.apps,
|
||||
// ...this.lists.games,
|
||||
// ])
|
||||
|
||||
return [
|
||||
...Array.from(this.lists.app),
|
||||
...Array.from(this.lists.game),
|
||||
]
|
||||
return new Set([
|
||||
...this.lists.app,
|
||||
...this.lists.game,
|
||||
])
|
||||
}
|
||||
|
||||
saveToJson = async function ( content, path ) {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue