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