Skip to content

Commit

Permalink
list-of-songs catch not_found
Browse files Browse the repository at this point in the history
  • Loading branch information
oldrich-s committed Apr 14, 2018
1 parent a73caf4 commit f8164b9
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion static/web/list-of-songs/list-of-songs.ts
Expand Up @@ -86,7 +86,7 @@ function startSavingScores() {
}

async function initScores() {
const sc = await readTextFile('/scores.json')
const sc = await readTextFile('/scores.json').catch(e => '{}')
scores = (sc && JSON.parse(sc)) || {}
startSavingScores()
}
Expand Down

0 comments on commit f8164b9

Please sign in to comment.