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;