Blob createObjectURL download not working in Firefox (but works when debugging)

You’re probably removing the resource too soon, try delaying it

    ...
    a.click();
    setTimeout(function(){
        document.body.removeChild(a);
        window.URL.revokeObjectURL(url);  
    }, 100);  
}

Leave a Comment