manage new setup
This commit is contained in:
parent
91945ff3fc
commit
fb34c2e4c0
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user