mirror of
https://github.com/electron/electron.git
synced 2026-01-25 23:38:18 -05:00
fix a minor bug in navigation-controller where a string is used as an object
This commit is contained in:
@@ -49,9 +49,10 @@ var NavigationController = (function () {
|
|||||||
// Normal navigation. Clear history.
|
// Normal navigation. Clear history.
|
||||||
this.history = this.history.slice(0, this.currentIndex + 1)
|
this.history = this.history.slice(0, this.currentIndex + 1)
|
||||||
currentEntry = this.history[this.currentIndex]
|
currentEntry = this.history[this.currentIndex]
|
||||||
if ((currentEntry != null ? currentEntry.url : void 0) !== url) {
|
|
||||||
|
if ((currentEntry != null ? currentEntry : void 0) !== url) {
|
||||||
this.currentIndex++
|
this.currentIndex++
|
||||||
return this.history.push(url)
|
this.history.push(url)
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
})
|
})
|
||||||
|
|||||||
Reference in New Issue
Block a user