Skip to content
This repository was archived by the owner on Jun 24, 2025. It is now read-only.

Commit 743fee2

Browse files
committed
electron: Fix alt+left, alt+right navigation
Broken due to a change in Electron API: https://github.com/electron/electron/pull/41577/files
1 parent f3641e5 commit 743fee2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/public/app/components/entrypoints.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -102,7 +102,7 @@ export default class Entrypoints extends Component {
102102
if (utils.isElectron()) {
103103
// standard JS version does not work completely correctly in electron
104104
const webContents = utils.dynamicRequire('@electron/remote').getCurrentWebContents();
105-
const activeIndex = parseInt(webContents.getActiveIndex());
105+
const activeIndex = parseInt(webContents.navigationHistory.getActiveIndex());
106106

107107
webContents.goToIndex(activeIndex - 1);
108108
}
@@ -115,7 +115,7 @@ export default class Entrypoints extends Component {
115115
if (utils.isElectron()) {
116116
// standard JS version does not work completely correctly in electron
117117
const webContents = utils.dynamicRequire('@electron/remote').getCurrentWebContents();
118-
const activeIndex = parseInt(webContents.getActiveIndex());
118+
const activeIndex = parseInt(webContents.navigationHistory.getActiveIndex());
119119

120120
webContents.goToIndex(activeIndex + 1);
121121
}

0 commit comments

Comments
 (0)