Don't default on std crate when manipulating browser history
This commit is contained in:
parent
43e04fb552
commit
8f6d05b819
1 changed files with 1 additions and 1 deletions
|
@ -1598,7 +1598,7 @@ if (!DOMTokenList.prototype.remove) {
|
||||||
clearTimeout(searchTimeout);
|
clearTimeout(searchTimeout);
|
||||||
if (search_input.value.length === 0) {
|
if (search_input.value.length === 0) {
|
||||||
if (browserSupportsHistoryApi()) {
|
if (browserSupportsHistoryApi()) {
|
||||||
history.replaceState("", "std - Rust", "?search=");
|
history.replaceState("", window.currentCrate + " - Rust", "?search=");
|
||||||
}
|
}
|
||||||
if (hasClass(main, "content")) {
|
if (hasClass(main, "content")) {
|
||||||
removeClass(main, "hidden");
|
removeClass(main, "hidden");
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue