This commit is contained in:
parent
f723206423
commit
87fd6265f4
1 changed files with 1 additions and 5 deletions
|
@ -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;
|
||||
|
|
Loading…
Add table
Reference in a new issue