From bc579a18e60647d4212e28e23328dd3d59753b6f Mon Sep 17 00:00:00 2001 From: Mitch J Date: Fri, 3 May 2024 01:54:21 -0400 Subject: [PATCH] fix window access in navbar code --- src/components/navigation/Navbar.vue | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/navigation/Navbar.vue b/src/components/navigation/Navbar.vue index eb0da8a..e7fa420 100644 --- a/src/components/navigation/Navbar.vue +++ b/src/components/navigation/Navbar.vue @@ -28,7 +28,7 @@ export default { computed: { padding() { let scaleFactor = 1; - if (window && window.innerHeight && window.innerHeight < 700) { + if (typeof window !== "undefined" && window.innerHeight && window.innerHeight < 700) { scaleFactor = 0.5; } let n = (30 * scaleFactor) * (1 - this.progress) + (10 * scaleFactor) * this.progress