filename bug fix, gcode nextline fix,
This commit is contained in:
@@ -99,12 +99,14 @@ module.exports = {
|
|||||||
}
|
}
|
||||||
const file = this.fileName;
|
const file = this.fileName;
|
||||||
if (file != "default") {
|
if (file != "default") {
|
||||||
const response = await fetch(`/api/file/EgZjaHJvbWUqCggBEAAYsQMYgAQyBggAEEUYOTIKCAE${file}`, {
|
const response = await fetch(
|
||||||
|
`/api/file/EgZjaHJvbWUqCggBEAAYsQMYgAQyBggAEEUYOTIKCAE${encodeURIComponent(file)}`,
|
||||||
|
{
|
||||||
cache: "no-cache",
|
cache: "no-cache",
|
||||||
});
|
},
|
||||||
|
);
|
||||||
if (response.status == 200) {
|
if (response.status == 200) {
|
||||||
const text = await response.text();
|
const text = await response.text();
|
||||||
console.log("text: ", text);
|
|
||||||
this.newGcode = text;
|
this.newGcode = text;
|
||||||
} else {
|
} else {
|
||||||
console.error("error loading");
|
console.error("error loading");
|
||||||
|
|||||||
Reference in New Issue
Block a user