fix: projection check
This commit is contained in:
parent
2041b38678
commit
6f094d02c2
|
@ -14,18 +14,17 @@ class ItemProxy {
|
||||||
const json = ecs.readJson(source);
|
const json = ecs.readJson(source);
|
||||||
this.json = json;
|
this.json = json;
|
||||||
const scripts = {};
|
const scripts = {};
|
||||||
// heavy handed...
|
|
||||||
if ('undefined' !== typeof window) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
if (json.projectionCheck) {
|
if (json.projectionCheck) {
|
||||||
scripts.projectionCheckInstance = ecs.readScript(json.projectionCheck);
|
scripts.projectionCheckInstance = ecs.readScript(json.projectionCheck);
|
||||||
}
|
}
|
||||||
if (json.start) {
|
// heavy handed...
|
||||||
scripts.startInstance = ecs.readScript(json.start);
|
if ('undefined' === typeof window) {
|
||||||
}
|
if (json.start) {
|
||||||
if (json.stop) {
|
scripts.startInstance = ecs.readScript(json.start);
|
||||||
scripts.stopInstance = ecs.readScript(json.stop);
|
}
|
||||||
|
if (json.stop) {
|
||||||
|
scripts.stopInstance = ecs.readScript(json.stop);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
this.scripts = scripts;
|
this.scripts = scripts;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue
Block a user