fetching macros file

This commit is contained in:
sanjayk03-dev
2024-01-23 00:51:33 +05:30
parent 31f5d1a6b8
commit c7ebabdfcf
2 changed files with 13 additions and 8 deletions

View File

@@ -53,7 +53,7 @@ module.exports = {
loadMacrosGcode: async function () {
const file = this.selectedValues[this.tab - 1];
if (this.selectedValues[this.tab - 1] != "default") {
const response = await fetch(`/api/file/${file}`, {
const response = await fetch(`/api/file/{%MACROS%}${file}`, {
cache: "no-cache",
});
const text = (await response.text()).split(" ").join("\n");