Skip to content

Commit 222126a

Browse files
Prevent tab title to "null" if the URL is a search one
1 parent 5ab0f37 commit 222126a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/main.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -161,7 +161,7 @@ function hideThemeButtonState() {
161161
outputElement: function() {
162162
return document.getElementById("search");
163163
},
164-
title: null,
164+
title: document.title,
165165
titleBeforeSearch: document.title,
166166
timeout: null,
167167
// On the search screen, so you remain on the last tab you opened.

0 commit comments

Comments
 (0)