Fix missing document title on the search page (#1578)
This commit is contained in:
parent
f4af3f31ef
commit
da612bbdd7
@ -1347,7 +1347,7 @@ class Display extends EventDispatcher {
|
|||||||
const {state} = this._history;
|
const {state} = this._history;
|
||||||
let {documentTitle, url, sentence} = (isObject(state) ? state : {});
|
let {documentTitle, url, sentence} = (isObject(state) ? state : {});
|
||||||
if (typeof documentTitle !== 'string') {
|
if (typeof documentTitle !== 'string') {
|
||||||
documentTitle = '';
|
documentTitle = document.title;
|
||||||
}
|
}
|
||||||
if (typeof url !== 'string') {
|
if (typeof url !== 'string') {
|
||||||
url = window.location.href;
|
url = window.location.href;
|
||||||
|
Loading…
Reference in New Issue
Block a user