From 9c577905ed2822e0048810c076e68bc04e632e6a Mon Sep 17 00:00:00 2001
From: Fuwn <contact@fuwn.me>
Date: Tue, 9 Jan 2024 23:54:39 -0800
Subject: fix(wrapped): no resise on server

---
 src/lib/Tools/Wrapped.svelte | 2 ++
 1 file changed, 2 insertions(+)

(limited to 'src/lib/Tools/Wrapped.svelte')

diff --git a/src/lib/Tools/Wrapped.svelte b/src/lib/Tools/Wrapped.svelte
index ea2d7536..d0ba5105 100644
--- a/src/lib/Tools/Wrapped.svelte
+++ b/src/lib/Tools/Wrapped.svelte
@@ -181,6 +181,8 @@
 	})();
 
 	const updateWidth = () => {
+		if (!browser) return;
+
 		const wrappedContainer = document.querySelector('#wrapped') as HTMLElement;
 
 		if (!wrappedContainer) return;
-- 
cgit v1.2.3

