From da612bbdd7c5ac15ed64497666f6415c525c823f Mon Sep 17 00:00:00 2001 From: toasted-nutbread Date: Wed, 31 Mar 2021 19:58:33 -0400 Subject: Fix missing document title on the search page (#1578) --- ext/js/display/display.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext') 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; -- cgit v1.2.3