mirror of
https://github.com/ziglang/zig.git
synced 2026-02-13 21:08:36 +00:00
autodoc: use location.replace to avoid history spam when searching
This commit is contained in:
parent
9fc6990052
commit
cb7c912a1b
@ -3264,8 +3264,7 @@ var zigAnalysis;
|
||||
let oldHash = location.hash;
|
||||
let parts = oldHash.split("?");
|
||||
let newPart2 = domSearch.value === "" ? "" : "?" + domSearch.value;
|
||||
location.hash =
|
||||
parts.length === 1 ? oldHash + newPart2 : parts[0] + newPart2;
|
||||
location.replace(parts.length === 1 ? oldHash + newPart2 : parts[0] + newPart2);
|
||||
}
|
||||
function getSearchTerms() {
|
||||
let list = curNavSearch.trim().split(/[ \r\n\t]+/);
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user