From ee416dc06e37229d3c653074d9e45f25d33a1822 Mon Sep 17 00:00:00 2001 From: Martin Fournier Date: Sun, 23 Jan 2022 12:40:28 -0500 Subject: [PATCH] Set nativeWindowOpen to fix deprecation warning --- electron/gameWindow.js | 3 +++ 1 file changed, 3 insertions(+) diff --git a/electron/gameWindow.js b/electron/gameWindow.js index 35637d3a4..eca464a8f 100644 --- a/electron/gameWindow.js +++ b/electron/gameWindow.js @@ -18,6 +18,9 @@ async function createWindow(killall) { show: false, backgroundThrottling: false, backgroundColor: "#000000", + webPreferences: { + nativeWindowOpen: true, + }, }); window.removeMenu();