summaryrefslogtreecommitdiffstats
path: root/index.html
diff options
context:
space:
mode:
authorBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-03-21 19:32:11 +0100
committerBenedikt Peetz <benedikt.peetz@b-peetz.de>2026-03-21 19:32:11 +0100
commit09836fa8a614ee4c0b986c21e370a741ca9ec9d8 (patch)
treef8c8250e50ef0e357dee37907c1165183b18decc /index.html
parentbuild(treewide): Provide a working `manifest.json` file (diff)
downloadweb-client-09836fa8a614ee4c0b986c21e370a741ca9ec9d8.zip
fix(lib/init): Correctly make the web-app relocatable
`reqwest`, which is doing our API requests for us, requires an absolute and not a relative URL.
Diffstat (limited to '')
-rw-r--r--index.html7
1 files changed, 7 insertions, 0 deletions
diff --git a/index.html b/index.html
index 3772400..303ca24 100644
--- a/index.html
+++ b/index.html
@@ -15,6 +15,13 @@
data-weak-refs
/>
+ <div id="location-storage" location="localhost"></div>
+ <script>
+ document
+ .querySelector("div#location-storage")
+ .setAttribute("location", document.location.href);
+ </script>
+
<link
data-trunk
rel="icon"