mirror of
https://github.com/electron/electron.git
synced 2026-01-30 01:38:49 -05:00
refactor: add prefer-const to .eslintrc + fix errors (#14880)
This commit is contained in:
committed by
Samuel Attard
parent
07161a8452
commit
3ad3ade828
@@ -141,11 +141,10 @@ const NavigationController = (function () {
|
||||
}
|
||||
|
||||
NavigationController.prototype.goToOffset = function (offset) {
|
||||
let pendingIndex
|
||||
if (!this.canGoToOffset(offset)) {
|
||||
return
|
||||
}
|
||||
pendingIndex = this.currentIndex + offset
|
||||
const pendingIndex = this.currentIndex + offset
|
||||
if (this.inPageIndex > -1 && pendingIndex >= this.inPageIndex) {
|
||||
this.pendingIndex = pendingIndex
|
||||
return this.webContents._goToOffset(offset)
|
||||
|
||||
Reference in New Issue
Block a user