fix xss issue reported by @realansgar, regression from 3dade61176

This commit is contained in:
Hakim El Hattab committed 2024-01-30 14:14:40 +01:00
1 parent 5d131cea20
commit 16f6633014
3 files changed
+9 -2

No files matched your search

+7
View File
@@ -383,6 +383,13 @@
window.addEventListener( 'message', function( event ) {
// Validate the origin of all messages to avoid parsing messages
// that aren't meant for us. Ignore when running off file:// so
// that the speaker view continues to work without a web server.
if( window.location.origin !== event.origin && window.location.origin !== 'file://' ) {
return
}
clearTimeout( connectionTimeout );
connectionStatus.style.display = 'none';