1
Fork 0
mirror of https://github.com/jech/galene.git synced 2024-11-22 16:45:58 +01:00

Minor fixes to sfu.js.

This commit is contained in:
Juliusz Chroboczek 2020-09-11 22:46:23 +02:00
parent 0b5416f617
commit d35f599922

View file

@ -776,8 +776,7 @@ function gotPermissions(perms) {
displayUsername(); displayUsername();
setButtonsVisibility(); setButtonsVisibility();
if(serverConnection.permissions.present) if(serverConnection.permissions.present)
displayMessage("Press Present to enable your camera or microphone", displayMessage("Press Present to enable your camera or microphone");
"info");
} }
const urlRegexp = /https?:\/\/[-a-zA-Z0-9@:%/._\\+~#=?]+[-a-zA-Z0-9@:%/_\\+~#=]/g; const urlRegexp = /https?:\/\/[-a-zA-Z0-9@:%/._\\+~#=?]+[-a-zA-Z0-9@:%/_\\+~#=]/g;
@ -1007,7 +1006,7 @@ function chatResizer(e) {
let right = document.getElementById("right"); let right = document.getElementById("right");
let start_x = e.clientX; let start_x = e.clientX;
let start_width = parseFloat(left.offsetWidth); let start_width = left.offsetWidth;
function start_drag(e) { function start_drag(e) {
let left_width = (start_width + e.clientX - start_x) * 100 / full_width; let left_width = (start_width + e.clientX - start_x) * 100 / full_width;