swp2clk: fix to use Storage lib correctly

pull/3627/head
thyttan 2024-10-28 20:44:36 +01:00
parent ca69ca5342
commit a230a34822
3 changed files with 4 additions and 3 deletions

View File

@ -2,3 +2,4 @@
0.02: Fix deleting from white and black lists.
0.03: Adapt to availability of Bangle.showClock and Bangle.load
0.04: Fix 'Uncaught ReferenceError: "__FILE__" is not defined' error (fix #2326)
0.05: Fix settings didn't call the Storage class correctly.

View File

@ -2,7 +2,7 @@
"id": "swp2clk",
"name": "Swipe back to the Clock",
"shortName": "Swipe to Clock",
"version": "0.04",
"version": "0.05",
"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",
"type": "bootloader",

View File

@ -150,10 +150,10 @@
};
var getAppList = () => {
var appList = storage
var appList = require("Storage")
.list(/\.info$/)
.map((appInfoFileName) => {
var appInfo = storage.readJSON(appInfoFileName, 1);
var appInfo = require("Storage").readJSON(appInfoFileName, 1);
return (
appInfo && {
name: appInfo.name,