When a user starts my app it displays a webpage. If the web server is down, or the internet connection is lost, the page just displays a blank white background. Is there a way I can have it display a page saying cannot make connection, and to retry, or something similar?
Thanks for any help.
When a user starts my app it displays a webpage. If the web server is down, or the internet connection is lost, the page just displays a blank white background. Is there a way I can have it display a page saying cannot make connection, and to retry, or something similar?
Thanks for any help.
--
You received this message because you are subscribed to the Google Groups "node-webkit" group.
To unsubscribe from this group and stop receiving emails from it, send an email to node-webkit...@googlegroups.com.
For more options, visit https://groups.google.com/groups/opt_out.
I'm still new to node .. is the dns module built in to node-webkit? I tried implementing this into my app, but i wasn't able to get a response. Any suggestions?
Dns is builtin module of nodejs, so it must work. Here is api docs: http://nodejs.org/api/dns.htmlAnyway, the question is still here: we've got no any error pages in node-webkit and I think that's bad.Checked source and resource for error page is present: https://github.com/rogerwang/chromium/blob/node/chrome/renderer/resources/neterror.htmlLooks like some part of renderer is not activated or just broken. I don't know how to debug/investigate and going to open issue on github.
Messed up with url of neterror.html… it's not used repo, same file is present in https://github.com/zcbenz/chromium/blob/node/chrome/renderer/resources/neterror.htmlLooks like error pages is handled using chrome:// internal url scheme with no success. If you navigate chrome://test/ and http://error.page/ network tab of dev tools says you requested data:text/html,chromewebdata. Chrome v30 on my computer doing same requests.So my opinion is chrome:// url scheme is broken. Maybe that's caused by introducing nw: scheme (there are some core files override).@LZAntal I know this problem has workarounds and can be resolved. But we need error pages, don't we? Example: in package.json 'main' is set to http://somewhere.remote and is not unreachable. Is white page good for user? Of course not!
Would you be able to share an example of how you handle this?