From 178d812e988f500dbbe44e357160b4c5d6295e9f Mon Sep 17 00:00:00 2001 From: Paulo Gustavo Veiga Date: Thu, 30 Dec 2021 22:27:53 -0800 Subject: [PATCH] Add base64 encode --- packages/mindplot/src/components/widget/Menu.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/packages/mindplot/src/components/widget/Menu.js b/packages/mindplot/src/components/widget/Menu.js index 40452ac1..450d4ad0 100644 --- a/packages/mindplot/src/components/widget/Menu.js +++ b/packages/mindplot/src/components/widget/Menu.js @@ -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(); });