Fixed missing spaces in backup file

This commit is contained in:
Ponkhy 2021-09-08 09:02:24 +02:00
parent 1ef4562905
commit acf6f1883b

View File

@ -371,7 +371,7 @@ export default {
} }
exportData = JSON.stringify(exportData); exportData = JSON.stringify(exportData);
let downloadItem = document.createElement("a"); let downloadItem = document.createElement("a");
downloadItem.setAttribute("href", `data:application/json;charset=utf-8, ${exportData}`); downloadItem.setAttribute("href", "data:application/json;charset=utf-8," + encodeURI(exportData));
downloadItem.setAttribute("download", fileName); downloadItem.setAttribute("download", fileName);
downloadItem.click(); downloadItem.click();
}, },