about summary refs log tree commit diff
diff options
context:
space:
mode:
authorGuillaume Gomez <guillaume1.gomez@gmail.com>2021-05-20 16:01:08 +0200
committerGuillaume Gomez <guillaume1.gomez@gmail.com>2021-05-20 16:01:08 +0200
commit222126adaf048950af6ef5c854e32a5ce8c02760 (patch)
tree920f0c6e1c7ebdbf099d8eb0e737522d125bf50a
parent5ab0f37087b61b2ea51f364498cddc20ecff74fa (diff)
downloadrust-222126adaf048950af6ef5c854e32a5ce8c02760.tar.gz
rust-222126adaf048950af6ef5c854e32a5ce8c02760.zip
Prevent tab title to "null" if the URL is a search one
-rw-r--r--src/librustdoc/html/static/main.js2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/librustdoc/html/static/main.js b/src/librustdoc/html/static/main.js
index 7c00cf940c7..1519392ab74 100644
--- a/src/librustdoc/html/static/main.js
+++ b/src/librustdoc/html/static/main.js
@@ -161,7 +161,7 @@ function hideThemeButtonState() {
         outputElement: function() {
             return document.getElementById("search");
         },
-        title: null,
+        title: document.title,
         titleBeforeSearch: document.title,
         timeout: null,
         // On the search screen, so you remain on the last tab you opened.