From 432f79936745773b52695e967467f0d1731ad1ca Mon Sep 17 00:00:00 2001 From: anatolykopyl Date: Sun, 1 Jan 2023 22:34:43 +0300 Subject: [PATCH] Disable goo on safari --- src/components/Controls.tsx | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/src/components/Controls.tsx b/src/components/Controls.tsx index 9257970..e49016d 100644 --- a/src/components/Controls.tsx +++ b/src/components/Controls.tsx @@ -29,7 +29,8 @@ export default () => { } } - const gooey = true; + const isSafari = /^((?!chrome|android).)*safari/i.test(navigator.userAgent); + const gooey = !isSafari; createEffect((prev) => { if (prev !== state.visibleChapter()) {