src/js/utils.js
function updateDownloadLink( anchor, objectUrl, fileName ) {
    if ( window.updateDownloadLinkIe11 ) {
        return window.updateDownloadLinkIe11( ...arguments );
    }
    anchor.setAttribute( 'href', objectUrl || '' );
    anchor.setAttribute( 'download', fileName || '' );
}
function updateDownloadLink( anchor, objectUrl, fileName ) {
    if ( window.updateDownloadLinkIe11 ) {
        return window.updateDownloadLinkIe11( ...arguments );
    }
    anchor.setAttribute( 'href', objectUrl || '' );
    anchor.setAttribute( 'download', fileName || '' );
}
function updateDownloadLink ( anchor , objectUrl , fileName ) { if ( window . updateDownloadLinkIe11 ) { return window . updateDownloadLinkIe11 ( ... arguments ) ; } anchor . setAttribute ( 'href' , objectUrl || '' ) ; anchor . setAttribute ( 'download' , fileName || '' ) ; }
Update a HTML anchor to serve as a download or reset it if an empty objectUrl is provided.

@param {HTMLElement} anchor the anchor element
@param {*} objectUrl the objectUrl to download
@param {*} fileName  the filename of the file
Update a HTML anchor to serve as a download or reset it if an empty objectUrl is provided .