diff options
| author | Viraj Mahesh <virajmahesh@gmail.com> | 2014-04-28 01:11:35 -0700 |
|---|---|---|
| committer | Viraj Mahesh <virajmahesh@gmail.com> | 2014-04-28 01:11:35 -0700 |
| commit | cdecbf86aee44226f864efd26fbd0930b309a875 (patch) | |
| tree | 9c80071c0800180ed03805b76bc642cd1c13737a /objects.js | |
| parent | d3ec80f3748eeed2f6a4f7c75c85d56388171e2a (diff) | |
| download | snap-byow-cdecbf86aee44226f864efd26fbd0930b309a875.tar.gz snap-byow-cdecbf86aee44226f864efd26fbd0930b309a875.zip | |
Revert f56dc8e..d3ec80f
This rolls back to commit f56dc8ecf5f2845ed40b62eec4e0e2227bebd5ba.
Diffstat (limited to 'objects.js')
| -rw-r--r-- | objects.js | 9 |
1 files changed, 1 insertions, 8 deletions
@@ -4764,14 +4764,7 @@ StageMorph.prototype.userMenu = function () { menu.addItem( "pic...", function () { - //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"); + window.open(myself.fullImageClassic().toDataURL()); }, 'open a new window\nwith a picture of the stage' ); |
