mirror of https://github.com/espruino/BangleApps
Test for mode being undefined
Code would fail if mode was undefined and launcher would fail to showpull/907/head
parent
100384f2e8
commit
b59fd3623a
|
@ -3,7 +3,7 @@
|
|||
var sui = Bangle.setUI;
|
||||
Bangle.setUI = function(mode, cb) {
|
||||
sui(mode,cb);
|
||||
if (!mode.startsWith("clock")) return;
|
||||
if (mode && !mode.startsWith("clock")) return;
|
||||
Bangle.swipeHandler = dir => { if (dir<0) Bangle.showLauncher(); };
|
||||
Bangle.on("swipe", Bangle.swipeHandler);
|
||||
};
|
||||
|
|
Loading…
Reference in New Issue