We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a89d01a commit 57437ebCopy full SHA for 57437eb
src/snapshot/filesaver.js
@@ -53,7 +53,11 @@ var fileSaver = function(url, name) {
53
54
// IE 10+ (native saveAs)
55
if(typeof navigator !== 'undefined' && navigator.msSaveBlob) {
56
- navigator.msSaveBlob(new Blob([url]), name);
+ // At this point we are only dealing with a SVG encoded as
57
+ // a data URL (since IE only supports SVG)
58
+ var encoded = url.split(/^data:image\/svg\+xml,/)[1];
59
+ var svg = decodeURIComponent(encoded);
60
+ navigator.msSaveBlob(new Blob([svg]), name);
61
resolve(name);
62
}
63
0 commit comments