Commit cfabf83e authored by Evan W. Patton's avatar Evan W. Patton Committed by Jeffrey Schiller

Fix blocks PNG export in Webkit (#1646)

Change-Id: I25a6e14773fb75a43a556bee57d49e8aa292d036
parent 68c6dfac
...@@ -181,7 +181,7 @@ goog.require('goog.Timer'); ...@@ -181,7 +181,7 @@ goog.require('goog.Timer');
var a = document.createElement('a'); var a = document.createElement('a');
a.download = name; a.download = name;
a.target = "_blank"; a.target = '_self';
if (canvas.toBlob === undefined) { if (canvas.toBlob === undefined) {
var src = canvas.toDataURL('image/png'); var src = canvas.toDataURL('image/png');
a.href = src; a.href = src;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment