Skip to content

Commit a08c47e

Browse files
author
thyttan
committed
swipeinv: add "ram" keyword to speed things up
1 parent 9e7bee6 commit a08c47e

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

apps/swipeinv/boot.js

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

77
let getAppIdFromSrc = ()=> {
8+
"ram"
89
if (!global.__FILE__ || global.__FILE__===".bootcde") {
910
return require("Storage").readJSON("setting.json",true).clock
1011
} else {return global.__FILE__.split(".")[0];}
@@ -14,6 +15,7 @@
1415
if (settings.global || Object.keys(settings.apps).length > 0) {
1516

1617
let swipeInverter = (dirLR, dirUD, obj) => {
18+
"ram"
1719
if (settings.global ^ Object.keys(settings.apps).includes(getAppIdFromSrc())) {
1820
if (!(obj && obj.inverted)) {
1921
E.stopEventPropagation();
@@ -28,6 +30,7 @@
2830
}
2931

3032
let dragInverter = (e) => {
33+
"ram"
3134
if (settings.global ^ Object.keys(settings.apps).includes(getAppIdFromSrc())) {
3235
if (!e.inverted) {
3336
E.stopEventPropagation();

0 commit comments

Comments
 (0)