mephisto41 / irccloud-standalone

An Electron app that embed IRCCloud.
5 stars 1 forks source link

If WiFi is down, the page load will fail and will never retry #9

Open shinglyu opened 8 years ago

mephisto41 commented 8 years ago

https://github.com/electron/electron/blob/master/docs/api/web-view-tag.md

Maybe we should listen "dom-ready" or "did-finish-load" event. And if those events not be triggered after starting loading page then we trigger reload again. I'm not sure there is more suitable way to resolve this issue.

shinglyu commented 8 years ago

Sounds good. How about a setInterval() that does a reload, and when we get a dom-ready event we cancel the timer?