You've already forked joplin
mirror of
https://github.com/laurent22/joplin.git
synced 2025-08-10 22:11:50 +02:00
@@ -112,9 +112,11 @@ export default class InteropServiceHelper {
|
|||||||
// fails on Linux (even if run in the main process).
|
// fails on Linux (even if run in the main process).
|
||||||
// As such, we use window.print(), which seems to work.
|
// 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(`
|
await win.webContents.executeJavaScript(`
|
||||||
// Blocks while the print dialog is open
|
// Blocks while the print dialog is open
|
||||||
window.print();
|
window.print();
|
||||||
|
Reference in New Issue
Block a user