fix LOCAL const

This commit is contained in:
Stewart Allen 2026-01-15 13:49:57 -05:00
commit 3e3b71edd1
2 changed files with 2 additions and 1 deletions

View file

@ -45,7 +45,7 @@ let LOC = self.location,
EVENT = broker,
SETUP = utils.parseOpt(LOC.search.substring(1)),
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);
// todo: fix in widget.js b/c front-end and back-end do not share api

View file

@ -559,6 +559,7 @@ function settingsImport(data, ask) {
}
if (api.const.LOCAL) console.log('import', data);
let isSettings = (data.settings && data.time);
let isProcess = (data.process && data.time && data.mode && data.name);
let isDevice = (data.device && data.time);