1$("#download-image").on('click', function() {
2 // For IE 10 & 11
3 if(typeof window.navigator.msSaveBlob === 'function')
4 window.navigator.msSaveBlob(new Blob( [__CANVAS.msToBlob()], {type: 'image/png'} ), 'page.png');
5 else
6 $(this).attr('href', __CANVAS.toDataURL()).attr('download', 'page.png');
7});
8