Compare commits
No commits in common. "1da6c76017567317d67e2a708682d8bbe40c88ad" and "b8e4139a91af44d62ec02af9d92b6ca18298bf36" have entirely different histories.
1da6c76017
...
b8e4139a91
2 changed files with 5 additions and 5 deletions
2
VERSION
2
VERSION
|
|
@ -1 +1 @@
|
|||
1.8.15
|
||||
1.8.14
|
||||
|
|
|
|||
|
|
@ -134,7 +134,7 @@ function createWindow() {
|
|||
session.defaultSession.setDisplayMediaRequestHandler(async (_request, callback) => {
|
||||
const sources = await desktopCapturer.getSources({ types: ['screen', 'window'], thumbnailSize: { width: 320, height: 180 } });
|
||||
if (sources.length === 0) {
|
||||
callback();
|
||||
callback({});
|
||||
return;
|
||||
}
|
||||
|
||||
|
|
@ -232,7 +232,7 @@ document.getElementById('cancelBtn').addEventListener('click', () => {
|
|||
try { fs.unlinkSync(tmpFile); } catch {}
|
||||
|
||||
if (!selection) {
|
||||
callback();
|
||||
callback({});
|
||||
return;
|
||||
}
|
||||
const selectedId = typeof selection === 'string' ? selection : selection.id;
|
||||
|
|
@ -241,7 +241,7 @@ document.getElementById('cancelBtn').addEventListener('click', () => {
|
|||
if (chosen) {
|
||||
callback(withAudio ? { video: chosen, audio: 'loopback' } : { video: chosen });
|
||||
} else {
|
||||
callback();
|
||||
callback({});
|
||||
}
|
||||
};
|
||||
|
||||
|
|
@ -252,7 +252,7 @@ document.getElementById('cancelBtn').addEventListener('click', () => {
|
|||
if (!resolved) {
|
||||
resolved = true;
|
||||
ipcMain.removeListener(PICKER_CHANNEL, onPickerResult);
|
||||
callback();
|
||||
callback({});
|
||||
}
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue