diff options
-rw-r--r-- | modules/unicode/index.html | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/modules/unicode/index.html b/modules/unicode/index.html index cb2beaa..924f86e 100644 --- a/modules/unicode/index.html +++ b/modules/unicode/index.html @@ -39,7 +39,11 @@ function do_lookup(override) { if (input.length == 0) return; } - location.hash = input; + if ("history" in window && "replaceState" in history) { + history.replaceState(null, "", "#" + input); + } else { + location.hash = input; + } var xhr = new XMLHttpRequest(); xhr.onreadystatechange = function() { |