diff --git a/static/galene.html b/static/galene.html index 06a40da..b1502db 100644 --- a/static/galene.html +++ b/static/galene.html @@ -233,11 +233,6 @@ - -
diff --git a/static/galene.js b/static/galene.js index d865ab7..7776aff 100644 --- a/static/galene.js +++ b/static/galene.js @@ -405,11 +405,6 @@ function setButtonsVisibility() { let present = permissions.indexOf('present') >= 0; let local = !!findUpMedia('camera'); let canWebrtc = !(typeof RTCPeerConnection === 'undefined'); - let canFile = - /** @ts-ignore */ - !!HTMLVideoElement.prototype.captureStream || - /** @ts-ignore */ - !!HTMLVideoElement.prototype.mozCaptureStream; let mediacount = document.getElementById('peers').childElementCount; let mobilelayout = isMobileLayout(); @@ -426,7 +421,6 @@ function setButtonsVisibility() { setVisibility('mediaoptions', present); setVisibility('sendform', present); setVisibility('simulcastform', present); - setVisibility('fileform', canFile && present); setVisibility('collapse-video', mediacount && mobilelayout); } @@ -617,21 +611,6 @@ getInputElement('activitybox').onchange = function(e) { } }; -getInputElement('fileinput').onchange = function(e) { - if(!(this instanceof HTMLInputElement)) - throw new Error('Unexpected type for this'); - let input = this; - let files = input.files; - for(let i = 0; i < files.length; i++) { - addFileMedia(files[i]).catch(e => { - console.error(e); - displayError(e); - }); - } - input.value = ''; - closeNav(); -}; - /** * @this {Stream} * @param {Object