1
0
mirror of https://github.com/laurent22/joplin.git synced 2025-08-10 22:11:50 +02:00

MacOS: Fixes #12240: Fix printing (#12244)

This commit is contained in:
Henry Heino
2025-05-19 14:57:34 -07:00
committed by GitHub
parent 4d790b6ffe
commit 77a07c937e

View File

@@ -112,9 +112,11 @@ export default class InteropServiceHelper {
// fails on Linux (even if run in the main process).
// As such, we use window.print(), which seems to work.
//
// 2025-05-03: Windows also needs the window.print() workaround.
// 2025-05-03: Windows and MacOS also need the window.print() workaround.
// See https://github.com/electron/electron/pull/46937.
if (shim.isLinux() || shim.isWindows()) {
const applyWorkaround = true;
if (applyWorkaround) {
await win.webContents.executeJavaScript(`
// Blocks while the print dialog is open
window.print();