rustdoc: Update document title when displaying search results
Fixes #26360.
This commit is contained in:
@@ -571,6 +571,9 @@
|
|||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Update document title to maintain a meaningful browser history
|
||||||
|
$(document).prop("title", "Results for " + query.query + " - Rust");
|
||||||
|
|
||||||
// Because searching is incremental by character, only the most
|
// Because searching is incremental by character, only the most
|
||||||
// recent search query is added to the browser history.
|
// recent search query is added to the browser history.
|
||||||
if (browserSupportsHistoryApi()) {
|
if (browserSupportsHistoryApi()) {
|
||||||
|
|||||||
Reference in New Issue
Block a user