The same behavior is observed on Windows.
Hi Dmitry,
Oops…that wasn’t anticipated! Well, how can I prevent Electron from downloading it…
MIME type?
Yes, it should check the MIME type by sending a HEAD request, ideally. But it slightly slows down fetching the page. Another workaround would be to handle will-download events of the Electron session. I’ll try it after updating the mobile app.
HEAD
will-download
The next version will display an error instead of downloading the file
Landed in v5.9.1! Thanks again for reporting