fix: projection check

This commit is contained in:
cha0s 2024-10-18 01:26:02 -05:00
parent 2041b38678
commit 6f094d02c2

View File

@ -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;
} }