Skip to content

Commit a62a203

Browse files
authored
Rollup merge of rust-lang#58306 - GuillaumeGomez:crate-browser-history, r=QuietMisdreavus
Don't default on std crate when manipulating browser history Fixes rust-lang#58263. r? @QuietMisdreavus
2 parents 2f5d8bc + 8f6d05b commit a62a203

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
@@ -1597,7 +1597,7 @@ if (!DOMTokenList.prototype.remove) {
15971597
clearTimeout(searchTimeout);
15981598
if (search_input.value.length === 0) {
15991599
if (browserSupportsHistoryApi()) {
1600-
history.replaceState("", "std - Rust", "?search=");
1600+
history.replaceState("", window.currentCrate + " - Rust", "?search=");
16011601
}
16021602
if (hasClass(main, "content")) {
16031603
removeClass(main, "hidden");

0 commit comments

Comments
 (0)