fastload - Fix build warnings

master
Martin Boonk 2022-11-28 20:26:46 +01:00
parent 88b9f7eac8
commit a8ba0658d9
1 changed files with 3 additions and 3 deletions

View File

@ -18,7 +18,7 @@ let loadingScreen = function(){
let cache = require("Storage").readJSON("fastload.cache") || {};
function checkApp(n){
let checkApp = function(n){
// no widgets, no problem
if (!global.WIDGETS) return true;
let app = require("Storage").read(n);
@ -33,11 +33,11 @@ function checkApp(n){
global._load = load;
function slowload(n){
let slowload = function(n){
global._load(n);
}
function fastload(n){
let fastload = function(n){
if (!n || checkApp(n)){
// Bangle.load can call load, to prevent recursion this must be the system load
global.load = slowload;