Add base64 encode

This commit is contained in:
Paulo Gustavo Veiga 2021-12-30 22:27:53 -08:00
parent 03d4e22442
commit 178d812e98

View File

@ -217,8 +217,7 @@ class Menu extends IMenu {
const anchor = $('#export_anchor'); const anchor = $('#export_anchor');
anchor.attr('download', `${mapId}.svg`); anchor.attr('download', `${mapId}.svg`);
// anchor.attr('href', `data:image/svg+xml;base64,${btoa(svgContent)}`); anchor.attr('href', `data:image/svg+xml;base64,${btoa(svgContent)}`);
anchor.attr('href', 'https://dev.w3.org/SVG/tools/svgweb/samples/svg-files/svg.svg');
anchor.click(); anchor.click();
}); });