Skip to content

Commit 3e3b71e

Browse files
committed
fix LOCAL const
1 parent 93ae095 commit 3e3b71e

2 files changed

Lines changed: 2 additions & 1 deletion

File tree

src/kiri/app/api.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ let LOC = self.location,
4545
EVENT = broker,
4646
SETUP = utils.parseOpt(LOC.search.substring(1)),
4747
FILES = openFiles(new Index(SETUP.d ? SETUP.d[0] : 'kiri')),
48-
LOCAL = self.debug && !SETUP.remote,
48+
LOCAL = (LOC.host.startsWith('localhost') || self.debug) && !SETUP.remote,
4949
SECURE = isSecure(LOC.protocol);
5050

5151
// todo: fix in widget.js b/c front-end and back-end do not share api

src/kiri/app/conf/manager.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -559,6 +559,7 @@ function settingsImport(data, ask) {
559559
}
560560

561561
if (api.const.LOCAL) console.log('import', data);
562+
562563
let isSettings = (data.settings && data.time);
563564
let isProcess = (data.process && data.time && data.mode && data.name);
564565
let isDevice = (data.device && data.time);

0 commit comments

Comments
 (0)