Fixing issue #147 - No way to open launcher when no clock

master
Dimitri Gigot 2020-03-29 02:48:21 +00:00
parent f42d5ee570
commit e97852cae4
1 changed files with 5 additions and 1 deletions

View File

@ -12,7 +12,11 @@ if (!settings.welcomed && require("Storage").read("welcome.js")!==undefined) {
clockApp = require("Storage").read(clockApps[0].src);
delete clockApps;
}
if (!clockApp) clockApp='E.showMessage("No Clock Found")';
if (!clockApp) clockApp=`E.showMessage("No Clock Found");
setWatch(() => {
Bangle.showLauncher();
}, BTN2, {repeat:false,edge:"falling"});)
`;
delete settings;
// check to see if our clock is wrong - if it is use GPS time
if ((new Date()).getFullYear()==1970) {