Skip to content

Commit

Permalink
Rollup merge of rust-lang#58306 - GuillaumeGomez:crate-browser-histor…
Browse files Browse the repository at this point in the history
…y, r=QuietMisdreavus

Don't default on std crate when manipulating browser history

Fixes rust-lang#58263.

r? @QuietMisdreavus
  • Loading branch information
Centril authored Feb 14, 2019
2 parents 2f5d8bc + 8f6d05b commit a62a203
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 @@ -1597,7 +1597,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 a62a203

Please sign in to comment.