mirror of
https://github.com/rust-lang/rust.git
synced 2026-05-21 17:52:12 +03:00
Rollup merge of #58306 - GuillaumeGomez:crate-browser-history, r=QuietMisdreavus
Don't default on std crate when manipulating browser history Fixes #58263. r? @QuietMisdreavus
This commit is contained in:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user