url encoding

This commit is contained in:
sanjayk03-dev
2024-01-23 01:08:25 +05:30
parent f50c4cd995
commit cef1e490f5
2 changed files with 7 additions and 5 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/{%MACROS%}${file}`, {
const response = await fetch(`/api/file/%7B%MACROS%7D${file}`, {
cache: "no-cache",
});
const text = (await response.text()).split(" ").join("\n");