mirror of
https://github.com/jellyfin/jellyfin-web.git
synced 2024-11-19 03:48:18 -07:00
19 lines
425 B
HTML
19 lines
425 B
HTML
|
<!doctype html>
|
||
|
<html>
|
||
|
<script src="../../jquery.js"></script>
|
||
|
<script>
|
||
|
var called = false,
|
||
|
error = false;
|
||
|
|
||
|
window.onerror = function() { error = true; };
|
||
|
|
||
|
jQuery( window ).on( "beforeunload", function( event ) {
|
||
|
called = true;
|
||
|
return "maybe";
|
||
|
}).on( "load", function( event ) {
|
||
|
$( window ).triggerHandler( "beforeunload" );
|
||
|
window.parent.iframeCallback( called && !error );
|
||
|
});
|
||
|
</script>
|
||
|
</html>
|