mirror of
https://github.com/ThatGuySam/doesitarm.git
synced 2026-05-18 06:44:46 -07:00
Add hasStory helper
This commit is contained in:
parent
27057c2a2f
commit
d66cf8e3a9
1 changed files with 4 additions and 0 deletions
|
|
@ -5,6 +5,10 @@ export function isVideo ( app ) {
|
||||||
return app.hasOwnProperty('thumbnail') && app.hasOwnProperty('timestamps')
|
return app.hasOwnProperty('thumbnail') && app.hasOwnProperty('timestamps')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export function hasStory ( app ) {
|
||||||
|
return app.lastUpdated !== null && getAppType( app ) === 'app' && app.text.includes('✅')
|
||||||
|
}
|
||||||
|
|
||||||
export function getAppType ( app ) {
|
export function getAppType ( app ) {
|
||||||
|
|
||||||
// Videos don't have a category
|
// Videos don't have a category
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue