fix var declaration order
This commit is contained in:
parent
c0be2080e8
commit
366232bd4d
1 changed files with 1 additions and 1 deletions
|
|
@ -123,6 +123,7 @@
|
|||
SDB['kiri-print-seq'] = printSeq++;
|
||||
|
||||
let settings = API.conf.get(),
|
||||
MODE = API.mode.get_id(),
|
||||
names = API.widgets.all()
|
||||
.map(w => w.meta ? w.meta.file : undefined)
|
||||
.filter(v => v)
|
||||
|
|
@ -130,7 +131,6 @@
|
|||
.map(v => v.substring(0,20))
|
||||
.map(v => v.split('.')[0]),
|
||||
name = names[0] || (MODE === MODES.CAM ? "cnc" : "print"),
|
||||
MODE = API.mode.get_id(),
|
||||
pre = `${name}-${(printSeq.toString().padStart(3,"0"))}`,
|
||||
filename = pre,// + (new Date().getTime().toString(36)),
|
||||
fileext = settings.device.gcodeFExt || "gcode",
|
||||
|
|
|
|||
Loading…
Reference in a new issue