0.04: Fix 'Uncaught ReferenceError: "__FILE__" is not defined' error (fix #2326)
parent
f55db143be
commit
1777799ae6
|
|
@ -1,3 +1,4 @@
|
||||||
0.01: Initial creation of "Swipe back to the Clock" App. Let's you swipe from left to right on any app to return back to the clock face.
|
0.01: Initial creation of "Swipe back to the Clock" App. Let's you swipe from left to right on any app to return back to the clock face.
|
||||||
0.02: Fix deleting from white and black lists.
|
0.02: Fix deleting from white and black lists.
|
||||||
0.03: Adapt to availability of Bangle.showClock and Bangle.load
|
0.03: Adapt to availability of Bangle.showClock and Bangle.load
|
||||||
|
0.04: Fix 'Uncaught ReferenceError: "__FILE__" is not defined' error (fix #2326)
|
||||||
|
|
|
||||||
|
|
@ -29,12 +29,13 @@
|
||||||
})(Bangle.load);
|
})(Bangle.load);
|
||||||
|
|
||||||
let swipeHandler = (dir) => {
|
let swipeHandler = (dir) => {
|
||||||
log("swipe:" + dir + " on app: " + __FILE__);
|
let currentFile = global.__FILE__||"default";
|
||||||
|
log("swipe:" + dir + " on app: " + currentFile);
|
||||||
|
|
||||||
if (!inhibit && dir === 1 && !Bangle.CLOCK && __FILE__ != ".bootcde") {
|
if (!inhibit && dir === 1 && !Bangle.CLOCK) {
|
||||||
log("on a not clock app " + __FILE__);
|
log("on a not clock app " + currentFile);
|
||||||
if ((settings.mode === 1 && settings.whiteList.includes(__FILE__)) || // "White List"
|
if ((settings.mode === 1 && settings.whiteList.includes(currentFile)) || // "White List"
|
||||||
(settings.mode === 2 && !settings.blackList.includes(__FILE__)) || // "Black List"
|
(settings.mode === 2 && !settings.blackList.includes(currentFile)) || // "Black List"
|
||||||
settings.mode === 3) { // "Always"
|
settings.mode === 3) { // "Always"
|
||||||
log("load clock");
|
log("load clock");
|
||||||
Bangle.showClock();
|
Bangle.showClock();
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
"id": "swp2clk",
|
"id": "swp2clk",
|
||||||
"name": "Swipe back to the Clock",
|
"name": "Swipe back to the Clock",
|
||||||
"shortName": "Swipe to Clock",
|
"shortName": "Swipe to Clock",
|
||||||
"version": "0.03",
|
"version": "0.04",
|
||||||
"description": "Let's you swipe from left to right on any app to return back to the clock face. Please configure in the settings app after installing to activate, since its disabled by default.",
|
"description": "Let's you swipe from left to right on any app to return back to the clock face. Please configure in the settings app after installing to activate, since its disabled by default.",
|
||||||
"icon": "app.png",
|
"icon": "app.png",
|
||||||
"type": "bootloader",
|
"type": "bootloader",
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue