fix LOCAL const
This commit is contained in:
parent
93ae09533a
commit
3e3b71edd1
2 changed files with 2 additions and 1 deletions
|
|
@ -45,7 +45,7 @@ let LOC = self.location,
|
||||||
EVENT = broker,
|
EVENT = broker,
|
||||||
SETUP = utils.parseOpt(LOC.search.substring(1)),
|
SETUP = utils.parseOpt(LOC.search.substring(1)),
|
||||||
FILES = openFiles(new Index(SETUP.d ? SETUP.d[0] : 'kiri')),
|
FILES = openFiles(new Index(SETUP.d ? SETUP.d[0] : 'kiri')),
|
||||||
LOCAL = self.debug && !SETUP.remote,
|
LOCAL = (LOC.host.startsWith('localhost') || self.debug) && !SETUP.remote,
|
||||||
SECURE = isSecure(LOC.protocol);
|
SECURE = isSecure(LOC.protocol);
|
||||||
|
|
||||||
// todo: fix in widget.js b/c front-end and back-end do not share api
|
// todo: fix in widget.js b/c front-end and back-end do not share api
|
||||||
|
|
|
||||||
|
|
@ -559,6 +559,7 @@ function settingsImport(data, ask) {
|
||||||
}
|
}
|
||||||
|
|
||||||
if (api.const.LOCAL) console.log('import', data);
|
if (api.const.LOCAL) console.log('import', data);
|
||||||
|
|
||||||
let isSettings = (data.settings && data.time);
|
let isSettings = (data.settings && data.time);
|
||||||
let isProcess = (data.process && data.time && data.mode && data.name);
|
let isProcess = (data.process && data.time && data.mode && data.name);
|
||||||
let isDevice = (data.device && data.time);
|
let isDevice = (data.device && data.time);
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue