ソースを参照

Added comment

Stephan Raab 1 年間 前
コミット
2cad731f23
1 ファイル変更1 行追加0 行削除
  1. 1 0
      src/vector/platform/ElectronPlatform.tsx

+ 1 - 0
src/vector/platform/ElectronPlatform.tsx

@@ -170,6 +170,7 @@ export default class ElectronPlatform extends VectorBasePlatform {
         window.electron.on("openDesktopCapturerSourcePicker", () => {
             const { finished } = Modal.createDialog(DesktopCapturerSourcePicker);
             finished.then(([source]) => {
+                // getDisplayMedia promise does not return if no dummy is passed here as source
                 this.ipc.call("callDisplayMediaCallback", source ?? { id: "", name: "", thumbnailURL: "" });
             });
         });