diff --git a/src/doodle3dmanager.js b/src/doodle3dmanager.js index 46d0615..871d7f9 100644 --- a/src/doodle3dmanager.js +++ b/src/doodle3dmanager.js @@ -18,7 +18,7 @@ export default class Doodle3DManager extends EventDispatcher { wifiboxid: 'Node JS Server', localip: '127.0.0.1:3000' }*/]; - this.checkNonServerBoxes = false; + this.checkNonServerBoxes = true; this.autoUpdate = false; } @@ -39,12 +39,11 @@ export default class Doodle3DManager extends EventDispatcher { } } async _checkNew() { - let boxes; + let boxes = []; try { boxes = await rest.get(`${ this.api }list.php`); } catch(error) { console.warn('fail connecting to Doodle3D server'); - return; } if (this.checkNonServerBoxes) boxes = boxes.concat(this.nonServerBoxes);