FileSaver.js
FileSaver.js copied to clipboard
Version 2+ does not work with Chrome popup blocker extension
From version 2.0 forward, every time the user tries to download a file, a popup notification shows up and the file doesn't download (even if the user presses the "show popup" or "whitelist this site" button). This does NOT happen with version 1.3.8.
I managed to reproduce this problem by using the "Poperblocker' extension, which can be found here: https://poperblocker.com/
JSFiddle with 2.0.2: https://jsfiddle.net/sdu4xcne/1/
JSFiddle with 1.3.8: https://jsfiddle.net/qeujogs4/
I created a PR which fixes this issue. I don't love the solution since it's a bit obscure, but it is simple and fixes the conflict with this Chrome extension.
Was the PR for this merged, or does this problem still exist? Looks like Safari still sees FileSaver.saveAs()
as a pop-up window (like a window.open
).
Nop, as you can see it's still open !568