1
Fork 0

Don't default on std crate when manipulating browser history

This commit is contained in:
Guillaume Gomez 2019-02-08 16:05:33 +01:00
parent 43e04fb552
commit 8f6d05b819

View file

@ -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");