From 12c18df053803251eaf41a2dd54021bcf11ad97e Mon Sep 17 00:00:00 2001 From: casperlamboo Date: Fri, 19 Aug 2016 14:54:10 +0200 Subject: [PATCH] make example non-blocking --- example/app.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/example/app.js b/example/app.js index 0f6c812..57a3931 100644 --- a/example/app.js +++ b/example/app.js @@ -11,6 +11,6 @@ const geometry = new THREE.TorusGeometry(20, 10, 30, 30); const slicer = new SLICER.Slicer(); slicer.setGeometry(geometry); -slicer.slice(settings, false).then(gcode => { +slicer.slice(settings, true).then(gcode => { document.getElementById('gcode').innerHTML = gcode.replace(/(?:\r\n|\r|\n)/g, '
'); });