From f4bc9e771b5f79ff95ed2069b9c1402679241ddb Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 28 Jan 2019 21:53:39 +0100 Subject: Added webrtc polyfill --- public/scripts/chat.js | 1 - public/scripts/main.js | 1 + 2 files changed, 1 insertion(+), 1 deletion(-) (limited to 'public/scripts') diff --git a/public/scripts/chat.js b/public/scripts/chat.js index 87b6589..056dc09 100644 --- a/public/scripts/chat.js +++ b/public/scripts/chat.js @@ -183,7 +183,6 @@ function chat() { } function getMediaStream(callback) { - navigator.getUserMedia = navigator.getUserMedia || navigator.webkitGetUserMedia || navigator.mozGetUserMedia; navigator.getUserMedia( {audio: true, video: {width: 1280, height: 720}}, stream => callback(stream), diff --git a/public/scripts/main.js b/public/scripts/main.js index 0d1ac3a..ff904dd 100644 --- a/public/scripts/main.js +++ b/public/scripts/main.js @@ -9,6 +9,7 @@ * This file only pulls all dependencies together * so it is compileable by browserify */ +require('webrtc-adapter/dist/adapter_core'); require('@fortawesome/fontawesome-free/js/all.min'); require('./peer'); require('./chat'); -- cgit v1.2.3