mirror of
https://github.com/louislam/uptime-kuma.git
synced 2024-12-27 22:49:42 -08:00
Fixed missing spaces in backup file
This commit is contained in:
parent
1ef4562905
commit
acf6f1883b
|
@ -371,7 +371,7 @@ export default {
|
|||
}
|
||||
exportData = JSON.stringify(exportData);
|
||||
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.click();
|
||||
},
|
||||
|
|
Loading…
Reference in a new issue