From d3ec80f3748eeed2f6a4f7c75c85d56388171e2a Mon Sep 17 00:00:00 2001 From: Viraj Mahesh Date: Mon, 28 Apr 2014 01:11:23 -0700 Subject: Commented out popup --- objects.js | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) (limited to 'objects.js') diff --git a/objects.js b/objects.js index ea07e6e..c4e857c 100644 --- a/objects.js +++ b/objects.js @@ -4764,7 +4764,14 @@ StageMorph.prototype.userMenu = function () { menu.addItem( "pic...", function () { - window.open(myself.fullImageClassic().toDataURL()); + //window.open(); + //window.location.href = + var ref = myself.fullImageClassic().toDataURL().replace(/^data:image\/[^;]/, 'data:application/octet-stream'); + var link = document.createElement('a'); + link.download = 'download.png'; + link.href = ref; + link.click(); + console.log("here"); }, 'open a new window\nwith a picture of the stage' ); -- cgit v1.3.1