🔀 Merge pull request #1087 from albcp/master

Fix configuration export
This commit is contained in:
Alicia Sykes 2023-01-29 21:31:29 +00:00 committed by GitHub
commit 4d5a79fec9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 1 additions and 1 deletions

View File

@ -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);