fix error message on removing bulk actions from search, closes #3027

This commit is contained in:
zadam
2022-07-30 14:06:25 +02:00
parent 6c43b92bf1
commit c727a2bc1b
2 changed files with 17 additions and 9 deletions

View File

@@ -122,7 +122,7 @@ export default class MermaidWidget extends NoteContextAwareWidget {
}
download(filename, text) {
var element = document.createElement('a');
const element = document.createElement('a');
element.setAttribute('href', 'data:image/svg+xml;charset=utf-8,' + encodeURIComponent(text));
element.setAttribute('download', filename);