Trailing slash
This commit is contained in:
parent
9ba26005cd
commit
b75ce72a2b
3 changed files with 11 additions and 7 deletions
|
@ -1,3 +1,9 @@
|
|||
{
|
||||
"trailingSlash": true
|
||||
"trailingSlash": true,
|
||||
"rewrites": [
|
||||
{
|
||||
"source": "/:match*",
|
||||
"destination": "/:match*/"
|
||||
}
|
||||
]
|
||||
}
|
||||
|
|
|
@ -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>
|
||||
|
|
|
@ -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() {
|
||||
|
|
Loading…
Reference in a new issue