Skip to content

Commit

Permalink
Switch to non-deprecated Electron navigation history APIs (#5626)
Browse files Browse the repository at this point in the history
  • Loading branch information
absidue committed Sep 2, 2024
1 parent 7c4e2de commit 9a84777
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -1595,7 +1595,7 @@ function runApp() {
click: (_menuItem, browserWindow, _event) => {
if (browserWindow == null) { return }

browserWindow.webContents.goBack()
browserWindow.webContents.navigationHistory.goBack()
},
type: 'normal',
},
Expand All @@ -1605,7 +1605,7 @@ function runApp() {
click: (_menuItem, browserWindow, _event) => {
if (browserWindow == null) { return }

browserWindow.webContents.goForward()
browserWindow.webContents.navigationHistory.goForward()
},
type: 'normal',
},
Expand Down

1 comment on commit 9a84777

@awsms
Copy link

@awsms awsms commented on 9a84777 Sep 2, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this actually breaks the Alt+Left keybind for me

Please sign in to comment.