mirror of
https://github.com/Doodle3D/Doodle3D-Slicer.git
synced 2024-11-22 05:37:55 +01:00
add comment
This commit is contained in:
parent
e289fd848a
commit
fb06bfb135
@ -191,6 +191,7 @@ export async function slice(target, name, mesh, settings, updateProgress) {
|
|||||||
const file = new File([gcode], 'doodle.gcode', { type: 'plain/text' });
|
const file = new File([gcode], 'doodle.gcode', { type: 'plain/text' });
|
||||||
body.append('file', file);
|
body.append('file', file);
|
||||||
|
|
||||||
|
// because fetch has no way of retrieving progress we fake progress
|
||||||
let loaded = 0;
|
let loaded = 0;
|
||||||
const interval = setInterval(() => {
|
const interval = setInterval(() => {
|
||||||
loaded += 15 * 1024;
|
loaded += 15 * 1024;
|
||||||
|
Loading…
Reference in New Issue
Block a user