Skip to content

Commit

Permalink
Merge pull request #3137 from r0hanSH/fix_dom_xss
Browse files Browse the repository at this point in the history
Fix DOM XSS
  • Loading branch information
hakimel authored Feb 28, 2022
2 parents e33c3c7 + 32cdd3b commit c47bf21
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions plugin/notes/speaker-view.html
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,10 @@ <h4 class="label">Notes</h4>

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

if (window.location.origin !== event.origin){
return;
}

clearTimeout( connectionTimeout );
connectionStatus.style.display = 'none';

Expand Down

0 comments on commit c47bf21

Please sign in to comment.