plugins/download/download.js
function download(url) {
        var a = document.createElement('a');
        a.href = url;
        a.setAttribute('download', 'doc');
        document.body.appendChild(a);
        a.click();
        document.body.removeChild(a);
    }
function download(url) {
        var a = document.createElement('a');
        a.href = url;
        a.setAttribute('download', 'doc');
        document.body.appendChild(a);
        a.click();
        document.body.removeChild(a);
    }
function download ( url ) { var a = document . createElement ( 'a' ) ; a . href = url ; a . setAttribute ( 'download' , 'doc' ) ; document . body . appendChild ( a ) ; a . click ( ) ; document . body . removeChild ( a ) ; }
Initiate a download for the given URL
@param   {string} url The download URL
@returns {void}
@private
Initiate a download for the given URL