make example non-blocking

This commit is contained in:
casperlamboo 2016-08-19 14:54:10 +02:00
parent 4c42bd8147
commit 0ae8ef33b9

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