Update settings.js

fix finding font if its in index 0
pull/924/head
t0m1o1 2021-12-05 18:59:11 +00:00 committed by GitHub
parent a1801f4572
commit 65ab804cd8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -10,7 +10,7 @@
'': {'title': 'Launcher Settings'},
'< Back': back,
'Font': {
value: fonts.indexOf(settings.font) || fonts.indexOf("12x20"),
value: fonts.includes(settings.font)? fonts.indexOf(settings.font) : fonts.indexOf("12x20"),
min:0, max:fonts.length-1, step:1,wrap:true,
onchange: (m) => {save('font', fonts[m])},
format: v => fonts[v]