Chrome on Windows uses filereader and popup, and so ignores filename.
var isWebKit = /AppleWebKit/.test(navigator.userAgent); is true for Chrome on Windows.
// Use download attribute first if possible (#193 Lumia mobile) unless this is a native macOS app
: 'download' in HTMLAnchorElement.prototype && !isWebKit ? function saveAs(blob, name, opts)
I bumped into this same issue and found that the script from the demo page (https://eligrey.com/demos/FileSaver.js/) works fine:
Thank you! use https://cdn.rawgit.com/eligrey/FileSaver.js/5ed507ef8aa53d8ecfea96d96bc7214cd2476fd2/FileSaver.min.js and works well
This is an issue I had and my solution was to pull 1.3.8 and use that version
Most helpful comment
I bumped into this same issue and found that the script from the demo page (https://eligrey.com/demos/FileSaver.js/) works fine:
https://cdn.rawgit.com/eligrey/FileSaver.js/5ed507ef8aa53d8ecfea96d96bc7214cd2476fd2/FileSaver.min.js