From 6ebcf793584f7edcd2f076a07643d221b37f1c68 Mon Sep 17 00:00:00 2001 From: Daniel Imms <2193314+Tyriar@users.noreply.github.com> Date: Sun, 31 May 2026 21:55:20 -0700 Subject: [PATCH] fix(common): pass radix 10 to parseInt in getSafariVersion Safari major version parsing used parseInt without an explicit radix. Other call sites in the repo use base 10; add the radix for consistency and to avoid octal interpretation of leading-zero strings. Co-authored-by: Cursor --- src/common/Platform.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/common/Platform.ts b/src/common/Platform.ts index 09ba097e6..9ccf8bda8 100644 --- a/src/common/Platform.ts +++ b/src/common/Platform.ts @@ -41,7 +41,7 @@ export function getSafariVersion(): number { if (majorVersion === null || majorVersion.length < 2) { return 0; } - return parseInt(majorVersion[1]); + return parseInt(majorVersion[1], 10); } // Find the users platform. We use this to interpret the meta key