jimmywarting / StreamSaver.js

StreamSaver writes stream to the filesystem directly asynchronous
https://jimmywarting.github.io/StreamSaver.js/example.html
MIT License
3.97k stars 413 forks source link

leave a change to open with cordova inappbrowser #226

Closed crapthings closed 3 years ago

crapthings commented 3 years ago

location.href and a.click() doesn't work with cordova

cordova.InAppBrowser.open(downloadUrl, '_system');

jimmywarting commented 3 years ago

Streamsaver is targeted for the browser. cordova has it own ways to save file that you probably should use instead to save files.