From 9a847775b7d9600c78dc99a29cc1071b677f916e Mon Sep 17 00:00:00 2001 From: absidue <48293849+absidue@users.noreply.github.com> Date: Mon, 2 Sep 2024 04:18:14 +0200 Subject: [PATCH] Switch to non-deprecated Electron navigation history APIs (#5626) --- src/main/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/main/index.js b/src/main/index.js index 5defe0157f52..f8e53a7e652f 100644 --- a/src/main/index.js +++ b/src/main/index.js @@ -1595,7 +1595,7 @@ function runApp() { click: (_menuItem, browserWindow, _event) => { if (browserWindow == null) { return } - browserWindow.webContents.goBack() + browserWindow.webContents.navigationHistory.goBack() }, type: 'normal', }, @@ -1605,7 +1605,7 @@ function runApp() { click: (_menuItem, browserWindow, _event) => { if (browserWindow == null) { return } - browserWindow.webContents.goForward() + browserWindow.webContents.navigationHistory.goForward() }, type: 'normal', },