Trailing slash

This commit is contained in:
MeowcaTheoRange 2023-11-23 11:56:39 -06:00
parent 9ba26005cd
commit b75ce72a2b
3 changed files with 11 additions and 7 deletions

View file

@ -1,3 +1,9 @@
{
"trailingSlash": true
"trailingSlash": true,
"rewrites": [
{
"source": "/:match*",
"destination": "/:match*/"
}
]
}

View file

@ -32,13 +32,13 @@
<section>
<button
onclick="
new WindowObject(document.getElementById('WindowHolder'), '/projects/hex')"
new WindowObject(document.getElementById('WindowHolder'), '/projects/hex/')"
>
Open Hex
</button>
<button
onclick="
new WindowObject(document.getElementById('WindowHolder'), '/projects/woz')"
new WindowObject(document.getElementById('WindowHolder'), '/projects/woz/')"
>
Open Woz
</button>

View file

@ -63,8 +63,7 @@ class WindowObject {
}
get content() {
if (srcdoc) return this.windowContent.srcdoc;
else return this.windowContent.src;
return this.windowContent.src;
}
set title(content) {
@ -72,8 +71,7 @@ class WindowObject {
}
set content(src) {
if (srcdoc) this.windowContent.srcdoc = src;
else this.windowContent.src = src;
this.windowContent.src = src;
}
minimizeWindow() {