shim pdf print

This commit is contained in:
Nystik
2026-03-13 19:57:37 +01:00
parent 610af0c4b1
commit 30590be9e3
4 changed files with 29 additions and 5 deletions

View File

@@ -157,6 +157,15 @@ export const ipcRenderer = {
handleRequestUrl(requestId, request);
return;
}
if (channel === "print-to-pdf") {
const [options] = args;
window.print();
queueMicrotask(() => {
ipcRenderer._emit("print-to-pdf", { success: true });
});
return;
}
},
sendSync(channel, ...args) {