Description
If I load a non-renderable URL, such as a .zip
or something that would prompt a 'download as' prompt in a browser, atom-shell renders a blank page.
The problem I'm running in to is I am not sure how to detect that something is non-renderable.
Here's a gif of what I mean:
Here's the source code of the test program: https://gist.github.com/maxogden/891f9f69be667e11fa5e
I've noticed that the did-stop-loading
event fires before did-finish-load
, and in the did-stop-loading
callback I get false
from WebContents.isLoading()
My problem is that I have no way of knowing if did-stop-loading
(correction: I mean did-finish-load
) will ever fire, as it never fires for non-renderable content. But there doesn't seem to be a way to know if the content is non-renderable through the API.