diff --git a/app/ecs/components/inventory.js b/app/ecs/components/inventory.js index 8196a25..23d5811 100644 --- a/app/ecs/components/inventory.js +++ b/app/ecs/components/inventory.js @@ -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; }