aboutsummaryrefslogtreecommitdiff
path: root/ext/js/display/display.js
diff options
context:
space:
mode:
authortoasted-nutbread <toasted-nutbread@users.noreply.github.com>2021-03-31 19:58:33 -0400
committerGitHub <noreply@github.com>2021-03-31 19:58:33 -0400
commitda612bbdd7c5ac15ed64497666f6415c525c823f (patch)
tree36a6208afba14dadd2204e063b74294c7e5a7e92 /ext/js/display/display.js
parentf4af3f31efb41a1379868c6f128e7a03ee05fd2b (diff)
Fix missing document title on the search page (#1578)
Diffstat (limited to 'ext/js/display/display.js')
-rw-r--r--ext/js/display/display.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/ext/js/display/display.js b/ext/js/display/display.js
index b17a6168..7ded1e09 100644
--- a/ext/js/display/display.js
+++ b/ext/js/display/display.js
@@ -1347,7 +1347,7 @@ class Display extends EventDispatcher {
const {state} = this._history;
let {documentTitle, url, sentence} = (isObject(state) ? state : {});
if (typeof documentTitle !== 'string') {
- documentTitle = '';
+ documentTitle = document.title;
}
if (typeof url !== 'string') {
url = window.location.href;