Doodle3D/Doodle3D-Slicer

Download button doesn't work in FireFox

casperlamboo opened this issue · 1 comments

Download button in the editor doesn't work. Firefox probably only allows downloads from user generated events.

function downloadFile (file, data) {
    'use strict';

    var blob = new Blob([data], {type:'text/plain'});

    var button = document.createElement('a');
    button.download = file;
    button.href = window.URL.createObjectURL(blob);
    button.click();
}

This problem is moved to the slicer interface