change the way dependent scripts are loaded and how debug state propagates from server to client to worker

This commit is contained in:
Stewart Allen 2020-03-18 18:22:57 -04:00
commit 490cdcbce4
8 changed files with 93 additions and 182 deletions

View file

@ -21,7 +21,7 @@ self.kiri.copyright = exports.COPYRIGHT;
DOC = self.document,
LOC = self.location,
HOST = LOC.host.split(':'),
LOCAL = HOST[0] === 'localhost' || HOST[0] === 'debug',
LOCAL = self.debug,
SETUP = parseOpt(LOC.search.substring(1)),
SECURE = isSecure(LOC.protocol),
SDB = MOTO.KV,