mirror of
https://bitbucket.org/wisemapping/wisemapping-frontend.git
synced 2024-12-22 19:53:49 +01:00
Add base64 encode
This commit is contained in:
parent
03d4e22442
commit
178d812e98
@ -217,8 +217,7 @@ class Menu extends IMenu {
|
||||
|
||||
const anchor = $('#export_anchor');
|
||||
anchor.attr('download', `${mapId}.svg`);
|
||||
// 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.attr('href', `data:image/svg+xml;base64,${btoa(svgContent)}`);
|
||||
|
||||
anchor.click();
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user