mirror of
https://github.com/electron/electron.git
synced 2026-04-10 03:01:51 -04:00
simplify logic
This commit is contained in:
@@ -50,7 +50,7 @@ var NavigationController = (function () {
|
||||
this.history = this.history.slice(0, this.currentIndex + 1)
|
||||
currentEntry = this.history[this.currentIndex]
|
||||
|
||||
if ((currentEntry != null ? currentEntry : void 0) !== url) {
|
||||
if (currentEntry !== url) {
|
||||
this.currentIndex++
|
||||
this.history.push(url)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user