Skip to content

Commit

Permalink
recover support for running speaker view from file:// protocol #3158
Browse files Browse the repository at this point in the history
  • Loading branch information
hakimel committed Mar 21, 2022
1 parent 3786133 commit 3077ddb
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion plugin/notes/notes.esm.js

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion plugin/notes/notes.js

Large diffs are not rendered by default.

6 changes: 3 additions & 3 deletions plugin/notes/speaker-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -365,11 +365,11 @@ <h4 class="label">Notes</h4>
var connectionTimeout = setTimeout( function() {
connectionStatus.innerHTML = 'Error connecting to main window.<br>Please try closing and reopening the speaker view.';
}, 5000 );

;
window.addEventListener( 'message', function( event ) {

// Ignore post messages from other origins to prevent XSS
if( window.location.origin !== event.origin ){
// Validate the origin of this message to avoid XSS
if( window.location.origin !== event.origin && event.source !== window.opener ) {
return;
}

Expand Down

0 comments on commit 3077ddb

Please sign in to comment.