From 88186554993eab11333b15cab3347b66103fed10 Mon Sep 17 00:00:00 2001 From: Amadeus Demarzi Date: Tue, 2 Jun 2026 11:51:30 -0700 Subject: [PATCH] Disable Safari iOS Workaround --- packages/diffs/src/components/CodeView.ts | 16 +--------------- 1 file changed, 1 insertion(+), 15 deletions(-) diff --git a/packages/diffs/src/components/CodeView.ts b/packages/diffs/src/components/CodeView.ts index ef0e9c6ef..16dc4f6be 100644 --- a/packages/diffs/src/components/CodeView.ts +++ b/packages/diffs/src/components/CodeView.ts @@ -476,21 +476,7 @@ interface SpringStepResult { } // A vibe slopped heuristic to detect mobile safari only -const MOBILE_SAFARI = (() => { - const { navigator } = globalThis; - - const userAgent = navigator.userAgent; - const isIOS = /iP(?:hone|ad|od)/.test(userAgent); - const isIPadOS = - navigator.platform === 'MacIntel' && navigator.maxTouchPoints > 1; - - return ( - (isIOS || isIPadOS) && - /AppleWebKit/.test(userAgent) && - /Safari/.test(userAgent) && - !/(CriOS|FxiOS|EdgiOS|OPiOS)/.test(userAgent) - ); -})(); +const MOBILE_SAFARI = false; type PendingAlignTypes = Exclude;