Skip to content

Commit 9e7bee6

Browse files
author
thyttan
committed
swipeinv: handle special cases of global.__FILE__
1 parent 90cc1e1 commit 9e7bee6

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

apps/swipeinv/boot.js

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,9 @@
55
}, require("Storage").readJSON("swipeinv.json", true) || {});
66

77
let getAppIdFromSrc = ()=> {
8-
return global.__FILE__ && global.__FILE__.split(".")[0];
8+
if (!global.__FILE__ || global.__FILE__===".bootcde") {
9+
return require("Storage").readJSON("setting.json",true).clock
10+
} else {return global.__FILE__.split(".")[0];}
911
}
1012

1113
setTimeout(() => { // Timeout so we prepend listeners late, hopefully after all other listerners were added.

0 commit comments

Comments
 (0)