Fix stupid url path thing

@danielhenrymantilla for you
This commit is contained in:
nora 2022-11-08 19:47:18 +01:00
parent 80c6b2a8a2
commit 5d3b9c99d0
No known key found for this signature in database

View file

@ -85,7 +85,13 @@ impl<T> Struct<T> {
></textarea>
<script>
const BASE_URL = `${document.location}`;
let BASE_URL = `${document.location}`;
if (!BASE_URL.endsWith("/")) {
// ugh, i hate url paths and their subtle interactions with things
BASE_URL = `${BASE_URL}/`;
}
const htmlStatus = document.getElementById("status");
const htmlResult = document.getElementById("result");