diff options
author | Marvin Borner | 2019-01-28 21:53:39 +0100 |
---|---|---|
committer | Marvin Borner | 2019-01-28 21:53:39 +0100 |
commit | f4bc9e771b5f79ff95ed2069b9c1402679241ddb (patch) | |
tree | 3603f48d1437e296778d4ec22487da63c4f38a62 /public | |
parent | f323eadd5d895424211b05691afda3969fd528f0 (diff) |
Added webrtc polyfill
Diffstat (limited to 'public')
-rw-r--r-- | public/scripts/chat.js | 1 | ||||
-rw-r--r-- | public/scripts/main.js | 1 |
2 files changed, 1 insertions, 1 deletions
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'); |