Skip to content

armgit / dashy

Public Imported from GitHub
0

πŸš€ A self-hostable personal dashboard built for you. Includes status-checking, widgets, themes, icon packs, a UI editor and tons more!

Correct config export removing leading space

Alberto Caravacaf3c854378c64
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);