This commit is contained in:
Vanessa 2024-03-25 20:14:03 +08:00
parent f723206423
commit 87fd6265f4

View file

@ -730,11 +730,7 @@ app.whenReady().then(() => {
return systemPreferences.askForMediaAccess("microphone");
}
if (data.cmd === "printToPDF") {
const wnd = getWindowByContentId(event.sender.id);
if (!wnd) {
return;
}
return wnd.webContents.printToPDF(data.pdfOptions);
return getWindowByContentId(data.webContentsId).webContents.printToPDF(data.pdfOptions);
}
if (data.cmd === "siyuan-open-file") {
let hasMatch = false;