Canvas toBlob is not recognized as a function in safari
<p>I am able to download an image in Chrome &amp; Firefox using the code below but in Safari it's throwing this error:</p>

<blockquote>
  <p>TypeError: 'undefined' is not a function (evaluating 'canvas.toBlob(blobCallback('wallpaperdeae'))')</p>
</blockquote>

<pre><code>$("#save").click(function(){

   function blobCallback(iconName) {
        return function (b) {

            var a = document.getElementById('download');
            a.download = iconName + ".jpg";
            a.href = window.URL.createObjectURL(b);
        }
    }
    canvas.toBlob(blobCallback('wallpaperdeae'));

});
</code></pre>