Fix JSON by not outputting error
This commit is contained in:
2
.gitignore
vendored
2
.gitignore
vendored
@@ -1,4 +1,4 @@
|
||||
server-pages-test.csv
|
||||
server-pages-*.csv
|
||||
|
||||
# npm {{{ -
|
||||
|
||||
|
||||
@@ -1,5 +1,6 @@
|
||||
shortUrl,url,siteTitle,description,repo,repoUrl
|
||||
cal.khkm.tk,https://cal.khkm.tk,"Baïkal server","CalDAV/CardDAV server.",sabre-io/Baikal,https://github.com/sabre-io/Baikal
|
||||
ataraxy.tk,http://ataraxy.tk/,"Ataraxy | Call of Duty: Mobile Clan","Site for my Call of Duty: Mobile clan.",Kevin-Mok/codm.ataraxy.tk,https://git.kevin-mok.com/Kevin-Mok/codm.ataraxy.tk
|
||||
git.kevin-mok.com,https://git.kevin-mok.com,"Kevin Mok's Gitea","Git server.",go-gitea/gitea,https://github.com/go-gitea/gitea
|
||||
img.khkm.tk,https://img.khkm.tk,"Kevin's Images","Image hosting.",LycheeOrg/Lychee,https://github.com/LycheeOrg/Lychee/
|
||||
kevin-mok.com,https://kevin-mok.com," Kevin Mok ","Personal site (this site).",Kevin-Mok/my-site,https://git.kevin-mok.com/Kevin-Mok/my-site
|
||||
|
||||
|
@@ -16,10 +16,12 @@ const checkIfTitleMatches = obj => {
|
||||
} else {
|
||||
obj['status'] = 'down'
|
||||
}
|
||||
return true
|
||||
// return true
|
||||
},
|
||||
error => { // failure handler
|
||||
console.log(error)
|
||||
// console.log(error)
|
||||
obj['status'] = 'down'
|
||||
// return false
|
||||
})
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user