From f3c854378c64e431c29625f32c7cd9aacfb96ba8 Mon Sep 17 00:00:00 2001 From: Alberto Caravaca <3170731+albcp@users.noreply.github.com> Date: Wed, 25 Jan 2023 09:45:59 -0600 Subject: [PATCH] Correct config export removing leading space --- src/components/InteractiveEditor/ExportConfigMenu.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/InteractiveEditor/ExportConfigMenu.vue b/src/components/InteractiveEditor/ExportConfigMenu.vue index f1892029..6d316e5d 100644 --- a/src/components/InteractiveEditor/ExportConfigMenu.vue +++ b/src/components/InteractiveEditor/ExportConfigMenu.vue @@ -70,7 +70,7 @@ export default { const filename = 'dashy_conf.yml'; const config = this.convertJsonToYaml(); const element = document.createElement('a'); - element.setAttribute('href', `data:text/plain;charset=utf-8, ${encodeURIComponent(config)}`); + element.setAttribute('href', `data:text/plain;charset=utf-8,${encodeURIComponent(config)}`); element.setAttribute('download', filename); element.style.display = 'none'; document.body.appendChild(element);