From 547aad464a7ae65e5705aee0876c5604d267eb56 Mon Sep 17 00:00:00 2001
From: yostane <1958676+yostane@users.noreply.github.com>
Date: Sun, 22 Sep 2024 09:07:49 +0200
Subject: [PATCH] Fix serving of dotnet with gh pages
---
docs/index.html | 17 +----------------
1 file changed, 1 insertion(+), 16 deletions(-)
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;