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>
|
<section>
|
||||||
<button
|
<button
|
||||||
onclick="
|
onclick="
|
||||||
new WindowObject(document.getElementById('WindowHolder'), '/projects/hex')"
|
new WindowObject(document.getElementById('WindowHolder'), '/projects/hex/')"
|
||||||
>
|
>
|
||||||
Open Hex
|
Open Hex
|
||||||
</button>
|
</button>
|
||||||
<button
|
<button
|
||||||
onclick="
|
onclick="
|
||||||
new WindowObject(document.getElementById('WindowHolder'), '/projects/woz')"
|
new WindowObject(document.getElementById('WindowHolder'), '/projects/woz/')"
|
||||||
>
|
>
|
||||||
Open Woz
|
Open Woz
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -63,8 +63,7 @@ class WindowObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
get content() {
|
get content() {
|
||||||
if (srcdoc) return this.windowContent.srcdoc;
|
return this.windowContent.src;
|
||||||
else return this.windowContent.src;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
set title(content) {
|
set title(content) {
|
||||||
|
@ -72,8 +71,7 @@ class WindowObject {
|
||||||
}
|
}
|
||||||
|
|
||||||
set content(src) {
|
set content(src) {
|
||||||
if (srcdoc) this.windowContent.srcdoc = src;
|
this.windowContent.src = src;
|
||||||
else this.windowContent.src = src;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
minimizeWindow() {
|
minimizeWindow() {
|
||||||
|
|
Loading…
Reference in a new issue