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:
commit
9a3e22e32f
@ -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");
|
||||
|
Loading…
x
Reference in New Issue
Block a user