Default to clock

pull/2148/head
kyleplo 2022-09-27 11:19:40 -04:00 committed by GitHub
parent 397908afcd
commit 83e5f681c2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 9 additions and 4 deletions

View File

@ -8,8 +8,13 @@ Bangle.on("lock", locked => {
}
});
E.on("init", () => {
if("__FILE__" in global && __FILE__ !== "powersave.screen.js")
Storage.write("powersave.json", {
app: __FILE__
});
if("__FILE__" in global && __FILE__ !== "powersave.screen.js"){
Storage.write("powersave.json", {
app: __FILE__
});
}else{
Storage.write("powersave.json", {
app: null
});
}
});