mirror of https://github.com/espruino/BangleApps
fixed travis build failures on pastel
parent
c05083a66a
commit
085c0dd328
|
@ -11,7 +11,7 @@
|
||||||
// ...and overwrite them with any saved values
|
// ...and overwrite them with any saved values
|
||||||
// This way saved values are preserved if a new version adds more settings
|
// This way saved values are preserved if a new version adds more settings
|
||||||
const storage = require('Storage')
|
const storage = require('Storage')
|
||||||
const settings = storage.readJSON(SETTINGS_FILE, 1) || {}
|
let settings = storage.readJSON(SETTINGS_FILE, 1) || {}
|
||||||
const saved = settings || {}
|
const saved = settings || {}
|
||||||
for (const key in saved) {
|
for (const key in saved) {
|
||||||
s[key] = saved[key]
|
s[key] = saved[key]
|
||||||
|
@ -26,7 +26,6 @@
|
||||||
|
|
||||||
E.showMenu({
|
E.showMenu({
|
||||||
'': { 'title': 'Pastel Clock' },
|
'': { 'title': 'Pastel Clock' },
|
||||||
'< Back': back,
|
|
||||||
'Font': {
|
'Font': {
|
||||||
value: 0 | font_options.indexOf(s.font),
|
value: 0 | font_options.indexOf(s.font),
|
||||||
min: 0, max: 4,
|
min: 0, max: 4,
|
||||||
|
|
Loading…
Reference in New Issue