updates for grid-print / finder
This commit is contained in:
parent
6b59c10e45
commit
4e4f4d0fec
3 changed files with 13 additions and 5 deletions
|
|
@ -1027,7 +1027,14 @@ self.kiri.license = exports.LICENSE;
|
|||
setProgress(Math.ceil(evt.loaded/evt.total), "sending");
|
||||
});
|
||||
filename = $('print-filename').value;
|
||||
xhtr.open("POST", host+"/api/print?filename="+filename+"&target="+target+"&key="+apik);
|
||||
xhtr.open("POST",
|
||||
host + "/api/print?" +
|
||||
"filename=" + filename +
|
||||
"&target=" + target +
|
||||
"&key=" + apik +
|
||||
"&time=" + Math.round(currentPrint.time) +
|
||||
"&length=" + Math.round(currentPrint.distance)
|
||||
);
|
||||
xhtr.setRequestHeader("Content-Type", "text/plain");
|
||||
xhtr.send(gcode);
|
||||
hideModal();
|
||||
|
|
|
|||
Loading…
Reference in a new issue