Skip to content

Commit

Permalink
Prevent tab title to "null" if the URL is a search one
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed May 20, 2021
1 parent 5ab0f37 commit 222126a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/librustdoc/html/static/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand Down

0 comments on commit 222126a

Please sign in to comment.