mirror of https://github.com/Lissy93/dashy.git
Correct config export removing leading space
This commit is contained in:
parent
1ba01ba5f3
commit
f3c854378c
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue