Skip to content

Commit a7cbefe

Browse files
committed
fix:
1 parent 4c04a6c commit a7cbefe

1 file changed

Lines changed: 4 additions & 4 deletions

File tree

src/Main/Service/BrowserViewService.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -220,19 +220,19 @@ class _BrowserViewService {
220220
}
221221

222222
canGoBack() {
223-
return this.active.browserView.webContents.canGoBack();
223+
return this.active.browserView.webContents.navigationHistory.canGoBack();
224224
}
225225

226226
canGoForward() {
227-
return this.active.browserView.webContents.canGoForward();
227+
return this.active.browserView.webContents.navigationHistory.canGoForward();
228228
}
229229

230230
goBack() {
231-
return this.active.browserView.webContents.goBack();
231+
return this.active.browserView.webContents.navigationHistory.goBack();
232232
}
233233

234234
goForward() {
235-
return this.active.browserView.webContents.goForward();
235+
return this.active.browserView.webContents.navigationHistory.goForward();
236236
}
237237

238238
focus() {

0 commit comments

Comments
 (0)