mirror of
https://git.anonymousland.org/anonymousland/synapse.git
synced 2025-05-06 17:15:04 -04:00
Don't cache isWebRTCSupported because whether webRTC is supported might change part-way through the page's lifecycle if your webrtc support comes from some kind of injected content script (hello OpenWebRTC Sarafi extension)
This commit is contained in:
parent
e3c3f5a6d0
commit
4b256cab31
4 changed files with 11 additions and 14 deletions
|
@ -60,7 +60,7 @@ angular.module('matrixPhoneService', [])
|
|||
var MatrixCall = $injector.get('MatrixCall');
|
||||
var call = new MatrixCall(event.room_id);
|
||||
|
||||
if (!isWebRTCSupported()) {
|
||||
if (!$rootScope.isWebRTCSupported()) {
|
||||
console.log("Incoming call ID "+msg.call_id+" but this browser doesn't support WebRTC");
|
||||
// don't hang up the call: there could be other clients connected that do support WebRTC and declining the
|
||||
// the call on their behalf would be really annoying.
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue