set debug flag at the start of worker code
This commit is contained in:
parent
d6aaa473af
commit
79061fa127
3 changed files with 11 additions and 5 deletions
|
|
@ -10,6 +10,7 @@ let KIRI = self.kiri = self.kiri || {},
|
|||
host = loc.hostname,
|
||||
port = loc.port,
|
||||
proto = loc.protocol,
|
||||
debug = self.debug === true,
|
||||
time = function() { return new Date().getTime() },
|
||||
seqid = 1,
|
||||
syncd = {},
|
||||
|
|
@ -57,7 +58,8 @@ KIRI.work = {
|
|||
if (self.createWorker) {
|
||||
return self.createWorker();
|
||||
} else {
|
||||
return new Worker(`/code/kiri_work.js?${gapp.version}`);
|
||||
let _ = debug ? '_' : '';
|
||||
return new Worker(`/code/kiri_work.js?${_}${gapp.version}`);
|
||||
}
|
||||
},
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue