[Power Save] Fix a couple of silly mistakes

pull/2163/head
kyleplo 2022-10-02 14:49:37 -04:00 committed by GitHub
parent a456f4ff62
commit a40c2b0632
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
3 changed files with 5 additions and 4 deletions

View File

@ -1,2 +1,3 @@
0.01: Initial release 0.01: Initial release
0.02: Removed accelerometer poll interval adjustment, fixed a few issues with detecting the current app 0.02: Removed accelerometer poll interval adjustment, fixed a few issues with detecting the current app
0.03: Fix a couple of silly mistakes

View File

@ -12,7 +12,7 @@ E.on("init", () => {
Storage.write("powersave.json", { Storage.write("powersave.json", {
app: __FILE__ app: __FILE__
}); });
}else{ }else if(!("__FILE__" in global)){
Storage.write("powersave.json", { Storage.write("powersave.json", {
app: null app: null
}); });

View File

@ -1,7 +1,7 @@
{ {
"id": "powersave", "id": "powersave",
"name": "Power Save", "name": "Power Save",
"version": "0.02", "version": "0.03",
"description": "Halts foreground app execution while screen is off while still allowing background processes.", "description": "Halts foreground app execution while screen is off while still allowing background processes.",
"readme": "README.md", "readme": "README.md",
"icon": "powersave.png", "icon": "powersave.png",
@ -10,7 +10,7 @@
"supports": ["BANGLEJS2"], "supports": ["BANGLEJS2"],
"storage": [ "storage": [
{"name":"powersave.boot.js","url":"boot.js"}, {"name":"powersave.boot.js","url":"boot.js"},
{"name":"powersave.screen.js","url":"boot.js"} {"name":"powersave.screen.js","url":"screen.js"}
], ],
"data": [ "data": [
{"name": "powersave.json"} {"name": "powersave.json"}