make example non-blocking

This commit is contained in:
casperlamboo 2016-08-19 14:54:10 +02:00 committed by Simon Voordouw
parent 9c9fbf4f01
commit 12c18df053

View File

@ -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, '<br />');
});