summaryrefslogtreecommitdiff
path: root/ext/js/display/display.js
diff options
context:
space:
mode:
Diffstat (limited to 'ext/js/display/display.js')
-rw-r--r--ext/js/display/display.js6
1 files changed, 4 insertions, 2 deletions
diff --git a/ext/js/display/display.js b/ext/js/display/display.js
index f05feac8..a5dad2d1 100644
--- a/ext/js/display/display.js
+++ b/ext/js/display/display.js
@@ -806,8 +806,10 @@ export class Display extends EventDispatcher {
const historyMode = (
eventType === 'click' ||
!(typeof historyState === 'object' && historyState !== null) ||
- historyState.cause !== 'queryParser'
- ) ? 'new' : 'overwrite';
+ historyState.cause !== 'queryParser' ?
+ 'new' :
+ 'overwrite'
+ );
/** @type {import('display').ContentDetails} */
const details = {
focus: false,