mirror of https://github.com/espruino/BangleApps
tweak welcome app to cope with no JSON
parent
6eabd60139
commit
e755d64cc1
|
@ -40,7 +40,7 @@
|
||||||
{ "id": "welcome",
|
{ "id": "welcome",
|
||||||
"name": "Welcome",
|
"name": "Welcome",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"version":"0.03",
|
"version":"0.04",
|
||||||
"description": "Appears at first boot and explains how to use Bangle.js",
|
"description": "Appears at first boot and explains how to use Bangle.js",
|
||||||
"tags": "start,welcome",
|
"tags": "start,welcome",
|
||||||
"allow_emulator":true,
|
"allow_emulator":true,
|
||||||
|
|
|
@ -1,3 +1,4 @@
|
||||||
0.01: New App!
|
0.01: New App!
|
||||||
0.02: Animate balloon intro
|
0.02: Animate balloon intro
|
||||||
0.03: BTN3 now won't restart when at the end
|
0.03: BTN3 now won't restart when at the end
|
||||||
|
0.04: Fix regression after tweaks to Storage.readJSON
|
||||||
|
|
|
@ -283,7 +283,7 @@ setWatch(()=>move(1), BTN3, {repeat:true});
|
||||||
setWatch(()=>{
|
setWatch(()=>{
|
||||||
// If we're on the last page
|
// If we're on the last page
|
||||||
if (sceneNumber == scenes.length-1) {
|
if (sceneNumber == scenes.length-1) {
|
||||||
var settings = require("Storage").readJSON('setting.json');
|
var settings = require("Storage").readJSON('setting.json',1)||{};
|
||||||
settings.welcomed = true;
|
settings.welcomed = true;
|
||||||
require("Storage").write('setting.json',settings);
|
require("Storage").write('setting.json',settings);
|
||||||
load();
|
load();
|
||||||
|
|
Loading…
Reference in New Issue