Open Roffild opened 4 weeks ago
Please take a look at the requested changes, and use the Ready for review button when you are done, thanks :+1:
Full fix for: https://github.com/Roffild/roffild.github.io/assets/38705255/2e049aea-bc77-482c-8355-d03e22345464
This still doesn't describe the issue (when down an error is expected, and the refresh button refreshes) and also doesn't match the code changes which are all over the place. Trying hard to find something here but if we cannot agree on an issue and the value of changes, maybe this should be rejected.
showError()
gives a choice to the user. But this choice doesn't know about the WebView's status.
Open http://hass.example.com in your browser. You will get an error. WebView doesn't autoReload. Will you WAIT endlessly (do nothing)? Or do you use page reload (F5)?
webView.reload()
always reloads the page.
this.reloadPage()
waits for the page to load or for an error.
After receiving an ERROR, the page must be reloaded.
WebView cannot report an error from the server.
Closed #4272