Skip to content

Commit

Permalink
Don't default on std crate when manipulating browser history
Browse files Browse the repository at this point in the history
  • Loading branch information
GuillaumeGomez committed Feb 8, 2019
1 parent 43e04fb commit 8f6d05b
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 @@ -1598,7 +1598,7 @@ if (!DOMTokenList.prototype.remove) {
clearTimeout(searchTimeout);
if (search_input.value.length === 0) {
if (browserSupportsHistoryApi()) {
history.replaceState("", "std - Rust", "?search=");
history.replaceState("", window.currentCrate + " - Rust", "?search=");
}
if (hasClass(main, "content")) {
removeClass(main, "hidden");
Expand Down

0 comments on commit 8f6d05b

Please sign in to comment.