mirror of
https://github.com/siyuan-note/siyuan.git
synced 2025-12-20 08:30:12 +01:00
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");
|
return systemPreferences.askForMediaAccess("microphone");
|
||||||
}
|
}
|
||||||
if (data.cmd === "printToPDF") {
|
if (data.cmd === "printToPDF") {
|
||||||
const wnd = getWindowByContentId(event.sender.id);
|
return getWindowByContentId(data.webContentsId).webContents.printToPDF(data.pdfOptions);
|
||||||
if (!wnd) {
|
|
||||||
return;
|
|
||||||
}
|
|
||||||
return wnd.webContents.printToPDF(data.pdfOptions);
|
|
||||||
}
|
}
|
||||||
if (data.cmd === "siyuan-open-file") {
|
if (data.cmd === "siyuan-open-file") {
|
||||||
let hasMatch = false;
|
let hasMatch = false;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue