From 77a07c937ed3d75d72f60acc51a21747a265fb0b Mon Sep 17 00:00:00 2001 From: Henry Heino <46334387+personalizedrefrigerator@users.noreply.github.com> Date: Mon, 19 May 2025 14:57:34 -0700 Subject: [PATCH] MacOS: Fixes #12240: Fix printing (#12244) --- packages/app-desktop/InteropServiceHelper.ts | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/packages/app-desktop/InteropServiceHelper.ts b/packages/app-desktop/InteropServiceHelper.ts index e604eaec90..5494bacc1f 100644 --- a/packages/app-desktop/InteropServiceHelper.ts +++ b/packages/app-desktop/InteropServiceHelper.ts @@ -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();