remove encoding while get

This commit is contained in:
sanjayk03-dev
2024-02-22 01:54:33 +05:30
parent 28153f5b55
commit 217de6dcf3
2 changed files with 4 additions and 7 deletions

View File

@@ -99,12 +99,9 @@ module.exports = {
}
const file = this.fileName;
if (file != "default") {
const response = await fetch(
`/api/file/EgZjaHJvbWUqCggBEAAYsQMYgAQyBggAEEUYOTIKCAE${encodeURIComponent(file)}`,
{
const response = await fetch(`/api/file/EgZjaHJvbWUqCggBEAAYsQMYgAQyBggAEEUYOTIKCAE${file}`, {
cache: "no-cache",
},
);
});
if (response.status == 200) {
const text = await response.text();
this.newGcode = text;

View File

@@ -226,7 +226,7 @@ script#control-view-template(type="text/x-template")
.macros-div(class="present")
button.macros-button(title="Click to run Macros",v-for="(index,macros) in config.macros",
@click="runMacros(index)",:disabled="!is_ready",v-bind:style="{ backgroundColor: macros.color; }") {{macros.name}}
@click="runMacros(index)",:disabled="!is_ready",v-bind:style="{ backgroundColor: macros.color }") {{macros.name}}
.tabs