mirror of
https://gitcode.com/GitHub_Trending/ji/jitsi-meet.git
synced 2025-12-30 11:22:31 +00:00
feat(index.html): post load error handler
Adds a placeholder which allows to write a plugin for executing some code after the "load error handler" is triggered. A function named "postLoadErrorHandler" should be defined in one of the "#include virtual" files.
This commit is contained in:
@@ -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 */);
|
||||
|
||||
Reference in New Issue
Block a user