diff --git a/docs/index.html b/docs/index.html index 35b1d17..b3d9bd9 100644 --- a/docs/index.html +++ b/docs/index.html @@ -1,7 +1,7 @@ - + { - // https://blog.elmah.io/how-to-fix-blazor-wasm-base-path-problems - const path = window.location.pathname.split("/"); - const base = document.getElementsByTagName("base")[0]; - if (window.location.host.includes("localhost")) { - base.setAttribute("href", "/"); - } else if (path.length > 2) { - base.setAttribute("href", "/" + path[1] + "/"); - } else if (path[path.length - 1].length != 0) { - window.location.replace( - window.location.origin + - window.location.pathname + - "/" + - window.location.search - ); - } document.body.addEventListener("keydown", function (e) { if (e.target.tagName === "INPUT") { return true;