mirror of https://github.com/espruino/BangleApps
swp2clk: fix to use Storage lib correctly
parent
ca69ca5342
commit
a230a34822
|
@ -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.
|
||||
|
|
|
@ -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",
|
||||
|
|
|
@ -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,
|
||||
|
|
Loading…
Reference in New Issue