Skip to content

Commit d1d0470

Browse files
authored
fix: Fix TypeError when reloading the web page of the Receiver sample (#786)
1 parent e5e80df commit d1d0470

File tree

1 file changed

+2
-0
lines changed
  • WebApp/client/public/receiver/js

1 file changed

+2
-0
lines changed

WebApp/client/public/receiver/js/main.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,8 @@ window.addEventListener('resize', function () {
3232
}, true);
3333

3434
window.addEventListener('beforeunload', async () => {
35+
if(!renderstreaming)
36+
return;
3537
await renderstreaming.stop();
3638
}, true);
3739

0 commit comments

Comments
 (0)