diff options
| author | Viraj Mahesh <virajmahesh@gmail.com> | 2014-04-28 01:11:23 -0700 |
|---|---|---|
| committer | Viraj Mahesh <virajmahesh@gmail.com> | 2014-04-28 01:11:23 -0700 |
| commit | d3ec80f3748eeed2f6a4f7c75c85d56388171e2a (patch) | |
| tree | f22ad3f23c36497d5429d5f9f488c70473a326e9 /objects.js | |
| parent | f56dc8ecf5f2845ed40b62eec4e0e2227bebd5ba (diff) | |
| download | snap-yow-d3ec80f3748eeed2f6a4f7c75c85d56388171e2a.tar.gz snap-yow-d3ec80f3748eeed2f6a4f7c75c85d56388171e2a.zip | |
Commented out popup
Diffstat (limited to 'objects.js')
| -rw-r--r-- | objects.js | 9 |
1 files changed, 8 insertions, 1 deletions
@@ -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' ); |
