From b75ce72a2bb9c0a834713e732efdce093aeb2922 Mon Sep 17 00:00:00 2001 From: MeowcaTheoRange Date: Thu, 23 Nov 2023 11:56:39 -0600 Subject: [PATCH] Trailing slash --- vercel.json | 8 +++++++- views/projects/index.html | 4 ++-- views/scripts/windows.js | 6 ++---- 3 files changed, 11 insertions(+), 7 deletions(-) diff --git a/vercel.json b/vercel.json index 1e9c7bc..6a09ffc 100644 --- a/vercel.json +++ b/vercel.json @@ -1,3 +1,9 @@ { - "trailingSlash": true + "trailingSlash": true, + "rewrites": [ + { + "source": "/:match*", + "destination": "/:match*/" + } + ] } diff --git a/views/projects/index.html b/views/projects/index.html index 992913b..4f3165b 100755 --- a/views/projects/index.html +++ b/views/projects/index.html @@ -32,13 +32,13 @@
diff --git a/views/scripts/windows.js b/views/scripts/windows.js index d777be2..60526da 100755 --- a/views/scripts/windows.js +++ b/views/scripts/windows.js @@ -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() {