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