Open ghost opened 2 years ago
I tested the method both in Firefox and Chromium 101.0.4921.0 (Developer Build) (64-bit) but it appears it's not usable with the built-in version used by the plugin.
Downloads have to be implemented (since it's part of Chromium's UI and OverlayPlugin replaces the UI). I'd have to figure out where to save the download, maybe ask the user whether the download is desired and once that's done, perform the download (maybe show download progress) and notify the user that the download is done.
It's a rare use case so I probably won't work on this but I'd accept a PR that does this (though we should probably discuss details like the download prompt, notification, etc. first). As a workaround, you could write the data to the user's clipboard instead.
Is download of files disabled in the current chromium version used by OverlayPlugin? I tried creating a link and simulating a click with
click()
to download a stringified object but it looks like it doesn't work (no errors in console). I can import/read files just fine by simulatingclick()
on an input tag though.Example: