Detect WEbGL error in appliction
07 August 2017 12:16
07 August 2017 23:41
Many errors would not be fixed by reloading the page. If you did that, it could start a never-ending loop.
You could change the init_cb() function to load a separate error page that gives the user an option to try reloading the original page.
You could change the init_cb() function to load a separate error page that gives the user an option to try reloading the original page.
function init_cb(canvas_elem, success) {
if (!success) {
console.log("b4w init failure");
//load error page
window.location.replace('http://error_page.com');
return;
}