Commit 16bf4d6c authored by Juliusz Chroboczek's avatar Juliusz Chroboczek

Move call the setViewportHeight to start function.

This avoids issues with initialisation order.
parent 3f3b2459
...@@ -371,7 +371,6 @@ function setViewportHeight() { ...@@ -371,7 +371,6 @@ function setViewportHeight() {
// Ajust video component size // Ajust video component size
resizePeers(); resizePeers();
} }
setViewportHeight();
// On resize and orientation change, we update viewport height // On resize and orientation change, we update viewport height
addEventListener('resize', setViewportHeight); addEventListener('resize', setViewportHeight);
...@@ -2937,6 +2936,8 @@ function start() { ...@@ -2937,6 +2936,8 @@ function start() {
fillLogin(); fillLogin();
document.getElementById("login-container").classList.remove('invisible'); document.getElementById("login-container").classList.remove('invisible');
setViewportHeight();
} }
start(); start();
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment