You've already forked matrix-react-sdk
mirror of
https://github.com/matrix-org/matrix-react-sdk.git
synced 2025-07-18 09:22:18 +03:00
attempt to make media selector work everywhere (TM)
loadDevices not only in electron Signed-off-by: Michael Telatynski <7t3chguy@gmail.com>
This commit is contained in:
@ -72,9 +72,7 @@ export default React.createClass({
|
||||
// RoomView.getScrollState()
|
||||
this._scrollStateMap = {};
|
||||
|
||||
// Only run these in electron, at least until a better mechanism for perms exists
|
||||
// https://w3c.github.io/permissions/#dom-permissionname-device-info
|
||||
if (window && window.process && window.process.type) CallMediaHandler.loadDevices();
|
||||
CallMediaHandler.loadDevices();
|
||||
|
||||
document.addEventListener('keydown', this._onKeyDown);
|
||||
},
|
||||
|
Reference in New Issue
Block a user