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:
parent
a4b2bacc7e
commit
09d0ab7df5
3 changed files with 40 additions and 18 deletions
|
@ -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);
|
||||
},
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue