Skip to content

Commit 8f6d05b

Browse files
Don't default on std crate when manipulating browser history
1 parent 43e04fb commit 8f6d05b

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/librustdoc/html/static/main.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1598,7 +1598,7 @@ if (!DOMTokenList.prototype.remove) {
15981598
clearTimeout(searchTimeout);
15991599
if (search_input.value.length === 0) {
16001600
if (browserSupportsHistoryApi()) {
1601-
history.replaceState("", "std - Rust", "?search=");
1601+
history.replaceState("", window.currentCrate + " - Rust", "?search=");
16021602
}
16031603
if (hasClass(main, "content")) {
16041604
removeClass(main, "hidden");

0 commit comments

Comments
 (0)