From fb34c2e4c05440607023aae3d853e80218659ad6 Mon Sep 17 00:00:00 2001 From: philc Date: Fri, 15 Nov 2024 09:39:47 +0100 Subject: [PATCH] manage new setup --- apxtri/models/Wwws.js | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/apxtri/models/Wwws.js b/apxtri/models/Wwws.js index 6abdfdc..e2b5cf4 100644 --- a/apxtri/models/Wwws.js +++ b/apxtri/models/Wwws.js @@ -47,7 +47,7 @@ Wwws.initlocaldata = (tribe, appname, pagename, version, profils, lg) => { }; } //check version - const initname = `../../tmp/initlocaldata/${tribe}_${appname}_${pagename}_${lg}_${locals.pages[pagename].version}.json`; + const initname = `../tmp/initlocaldata/${tribe}_${appname}_${pagename}_${lg}_${locals.pages[pagename].version}.json`; if (fs.existsSync(initname) && 1 != 1) { const init = fs.readJsonSync(initname); if (init.app.version == locals.app.version) { @@ -83,6 +83,8 @@ Wwws.initlocaldata = (tribe, appname, pagename, version, profils, lg) => { if (loc.itms){ Object.keys(loc.itms).forEach((r) => { const src = `../../${loc.itms[r]}.json`; + console.log(path.resolve(src)) + console.log(path.resolve(`${loc.itms[r]}.json`)) if (fs.existsSync(src)) { localstorage.itms[r] = fs.readJSONSync(src); } else {