diff options
Diffstat (limited to 'ext/js/display/display-history.js')
-rw-r--r-- | ext/js/display/display-history.js | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/ext/js/display/display-history.js b/ext/js/display/display-history.js index 449bec47..901a2d84 100644 --- a/ext/js/display/display-history.js +++ b/ext/js/display/display-history.js @@ -92,11 +92,6 @@ class DisplayHistory extends EventDispatcher { } _go(forward) { - const target = forward ? this._current.next : this._current.previous; - if (target === null) { - return false; - } - if (this._useBrowserHistory) { if (forward) { history.forward(); @@ -104,6 +99,8 @@ class DisplayHistory extends EventDispatcher { history.back(); } } else { + const target = forward ? this._current.next : this._current.previous; + if (target === null) { return false; } this._current = target; this._updateHistoryFromCurrent(true); } |