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 {