bcliang / dash-clientside-demo

Real-time Bitcoin price (BTC-USD) tracker using Dash with clientside callbacks.
MIT License
4 stars 1 forks source link

EdgeHTML v18 doesn't support File() constructor #2

Closed bcliang closed 5 years ago

bcliang commented 5 years ago

As mentioned on the dash plotly forums, clientside callbacks for downloading figure data will fail in the current Edge browser release.

The root cause for this is that the JS-based CSV generation (assets/app-download.js) is currently implemented through the FileAPI. EdgeHTML v18 doesn't support the File constructor...

From assets/app-download.js#L64:

        // generate file and send through file-saver
        const file = new File([dataTable.concat("\n\n", footer)], "bpi.csv", {
            type: "text/csv;charset=utf-8"
        });

Solution: The Blob object is fully supported in most current browsers.

bcliang commented 5 years ago

fixed in PR #3