diff --git a/KronaTools/src/krona-2.0.js b/KronaTools/src/krona-2.0.js index 2398d47..e3ab395 100644 --- a/KronaTools/src/krona-2.0.js +++ b/KronaTools/src/krona-2.0.js @@ -6077,10 +6077,10 @@ function snapshot() snapshotMode = false; svg += svgFooter(); - - var snapshotWindow = window.open('', '_blank', '', 'replace=false'); - snapshotWindow.document.write('Download Snapshot'); - snapshotWindow.document.write(svg); + var dataUri = 'data:image/svg+xml,' + encodeURIComponent(svg) + var string = 'Download Snapshot'; + var win = window.open(); + win.document.write(string) } function save()