File tree Expand file tree Collapse file tree 1 file changed +8
-5
lines changed
app/renderer/js/components Expand file tree Collapse file tree 1 file changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -184,8 +184,8 @@ export default class WebView {
184
184
}
185
185
186
186
back ( ) : void {
187
- if ( this . getWebContents ( ) . canGoBack ( ) ) {
188
- this . getWebContents ( ) . goBack ( ) ;
187
+ if ( this . getWebContents ( ) . navigationHistory . canGoBack ( ) ) {
188
+ this . getWebContents ( ) . navigationHistory . goBack ( ) ;
189
189
this . focus ( ) ;
190
190
}
191
191
}
@@ -194,12 +194,15 @@ export default class WebView {
194
194
const $backButton = document . querySelector (
195
195
"#actions-container #back-action" ,
196
196
) ! ;
197
- $backButton . classList . toggle ( "disable" , ! this . getWebContents ( ) . canGoBack ( ) ) ;
197
+ $backButton . classList . toggle (
198
+ "disable" ,
199
+ ! this . getWebContents ( ) . navigationHistory . canGoBack ( ) ,
200
+ ) ;
198
201
}
199
202
200
203
forward ( ) : void {
201
- if ( this . getWebContents ( ) . canGoForward ( ) ) {
202
- this . getWebContents ( ) . goForward ( ) ;
204
+ if ( this . getWebContents ( ) . navigationHistory . canGoForward ( ) ) {
205
+ this . getWebContents ( ) . navigationHistory . goForward ( ) ;
203
206
}
204
207
}
205
208
You can’t perform that action at this time.
0 commit comments