From c387fb264ea19682c7038a2a5478e2fbecd79d8a Mon Sep 17 00:00:00 2001 From: Adam Stachowicz Date: Sat, 11 Sep 2021 10:50:56 +0200 Subject: [PATCH] Format JSON file before download --- src/pages/Settings.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pages/Settings.vue b/src/pages/Settings.vue index b91d2571d..cd1a95bc2 100644 --- a/src/pages/Settings.vue +++ b/src/pages/Settings.vue @@ -383,7 +383,7 @@ export default { notificationList: this.$root.notificationList, monitorList: monitorList, } - exportData = JSON.stringify(exportData); + exportData = JSON.stringify(exportData, null, 4); let downloadItem = document.createElement("a"); downloadItem.setAttribute("href", "data:application/json;charset=utf-8," + encodeURI(exportData)); downloadItem.setAttribute("download", fileName);