Merge pull request #1382 from jitsi/load_error_handler_placeholder

Post load error handler
This commit is contained in:
Дамян Минков 2017-03-07 17:29:30 -06:00 committed by GitHub
commit 3ee65748bb
1 changed files with 5 additions and 0 deletions

View File

@ -113,6 +113,11 @@
window.setTimeout(
function () { window.location.replace(href); }, delay);
// Call extra handler if defined.
if (typeof postLoadErrorHandler === "function") {
postLoadErrorHandler();
}
};
window.removeEventListener(
'error', loadErrHandler, true /* capture phase */);