fiv out of sync speaker view after presentation reloads #2822 #3032

This commit is contained in:
hakimel
2022-02-10 13:28:37 +01:00
parent 6b535328c0
commit ff20051861
4 changed files with 174 additions and 121 deletions

View File

@ -435,6 +435,7 @@
setupKeyboard();
setupNotes();
setupTimer();
setupHeartbeat();
}
}
@ -536,6 +537,18 @@
}
/**
* We send out a heartbeat at all times to ensure we can
* reconnect with the main presentation window after reloads.
*/
function setupHeartbeat() {
setInterval( () => {
window.opener.postMessage( JSON.stringify({ namespace: 'reveal-notes', type: 'heartbeat'} ), '*' );
}, 1000 );
}
function getTimings( callback ) {
callRevealApi( 'getSlidesAttributes', [], function ( slideAttributes ) {