add comment

This commit is contained in:
casperlamboo 2018-01-25 12:24:01 +01:00
parent e289fd848a
commit fb06bfb135

View File

@ -191,6 +191,7 @@ export async function slice(target, name, mesh, settings, updateProgress) {
const file = new File([gcode], 'doodle.gcode', { type: 'plain/text' });
body.append('file', file);
// because fetch has no way of retrieving progress we fake progress
let loaded = 0;
const interval = setInterval(() => {
loaded += 15 * 1024;