Fix media permissions failure on Calls window (#2550)

This commit is contained in:
Claudio Costa
2023-02-10 11:13:31 -06:00
committed by GitHub
parent 8dbdb0a75e
commit 562ef14aef
4 changed files with 65 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ import {
CALLS_PLUGIN_ID,
} from 'common/utils/constants';
import Utils from 'common/utils/util';
import urlUtils from 'common/utils/url';
import {
CALLS_JOINED_CALL,
CALLS_POPOUT_FOCUS,
@@ -210,5 +211,13 @@ export default class CallsWidgetWindow extends EventEmitter {
}
this.popOut.focus();
}
public getWebContentsId() {
return this.win.webContents.id;
}
public getURL() {
return urlUtils.parseURL(this.win.webContents.getURL());
}
}