From 710311bb97fe843d35a950c5ffd0ddaa67be3482 Mon Sep 17 00:00:00 2001 From: Brian Ondov Date: Mon, 20 Dec 2021 16:11:20 -0500 Subject: [PATCH] snapshot fix --- KronaTools/src/krona-2.0.js | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) 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()