Skip to content
Permalink
Browse files

Don't default on std crate when manipulating browser history

  • Loading branch information...
GuillaumeGomez committed Feb 8, 2019
1 parent 43e04fb commit 8f6d05b819bfadfad8f3fea9ba83deb7522dac78
Showing with 1 addition and 1 deletion.
  1. +1 −1 src/librustdoc/html/static/main.js
@@ -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");

0 comments on commit 8f6d05b

Please sign in to comment.
You can’t perform that action at this time.