From ca3b1602b0123d8275764b932370e97fc9a2b8e9 Mon Sep 17 00:00:00 2001 From: Didi Date: Tue, 17 Mar 2026 16:36:35 +1030 Subject: [PATCH 1/5] Fix OS name check from 'Mac OS' to 'macOS' --- src/app/utils/user-agent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/utils/user-agent.ts b/src/app/utils/user-agent.ts index 0e82daf0e..4f83c890f 100644 --- a/src/app/utils/user-agent.ts +++ b/src/app/utils/user-agent.ts @@ -9,7 +9,7 @@ const isMobileOrTablet = (() => { return false; })(); -const isMac = result.os.name === 'Mac OS'; +const isMac = result.os.name === 'macOS'; export const ua = () => result; export const isMacOS = () => isMac; From 3f51f7a72dea7f537ec059986b17939aee993b72 Mon Sep 17 00:00:00 2001 From: Didi Date: Tue, 17 Mar 2026 17:58:28 +1030 Subject: [PATCH 2/5] Revert Broken Changes --- src/app/utils/user-agent.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/utils/user-agent.ts b/src/app/utils/user-agent.ts index 4f83c890f..0e82daf0e 100644 --- a/src/app/utils/user-agent.ts +++ b/src/app/utils/user-agent.ts @@ -9,7 +9,7 @@ const isMobileOrTablet = (() => { return false; })(); -const isMac = result.os.name === 'macOS'; +const isMac = result.os.name === 'Mac OS'; export const ua = () => result; export const isMacOS = () => isMac; From 1b243b24ac6a4eaec5a1ed2c08acab43d1cad771 Mon Sep 17 00:00:00 2001 From: Didi Date: Tue, 17 Mar 2026 18:26:03 +1030 Subject: [PATCH 3/5] Make Mac OS, macOS in user-agent --- src/app/utils/user-agent.ts | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/src/app/utils/user-agent.ts b/src/app/utils/user-agent.ts index 0e82daf0e..e1a2e0a61 100644 --- a/src/app/utils/user-agent.ts +++ b/src/app/utils/user-agent.ts @@ -9,6 +9,12 @@ const isMobileOrTablet = (() => { return false; })(); +const normalizeMacName = (os?: string) => { + if (!os) return os; + if (os === 'Mac OS') return 'macOS'; + return os; +}; + const isMac = result.os.name === 'Mac OS'; export const ua = () => result; @@ -17,7 +23,7 @@ export const mobileOrTablet = () => isMobileOrTablet; export const deviceDisplayName = (): string => { const browser = result.browser.name; - const os = result.os.name; + const os = normalizeMacName(result.os.name); if (!browser || !os) return 'Sable Web'; return `Sable on ${browser} for ${os}`; }; From 4308179ca1f7380c5cbf9aa0d7c0c58ddd6229dd Mon Sep 17 00:00:00 2001 From: Didi Date: Tue, 17 Mar 2026 18:33:13 +1030 Subject: [PATCH 4/5] Added changeset --- .changeset/fix-macos-casing.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/fix-macos-casing.md diff --git a/.changeset/fix-macos-casing.md b/.changeset/fix-macos-casing.md new file mode 100644 index 000000000..7e7d223e4 --- /dev/null +++ b/.changeset/fix-macos-casing.md @@ -0,0 +1,5 @@ +--- +default: patch +--- + +Fixes Mac OS to macOS in the the devices tab From 5052aaf38d13cf12d74082bf382203af72d0455f Mon Sep 17 00:00:00 2001 From: Didi Date: Tue, 17 Mar 2026 18:37:01 +1030 Subject: [PATCH 5/5] Correct casing of 'Mac OS' to 'macOS' in devices tab --- .changeset/fix-macos-casing.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.changeset/fix-macos-casing.md b/.changeset/fix-macos-casing.md index 7e7d223e4..735318ab4 100644 --- a/.changeset/fix-macos-casing.md +++ b/.changeset/fix-macos-casing.md @@ -2,4 +2,4 @@ default: patch --- -Fixes Mac OS to macOS in the the devices tab +Fix Mac OS to macOS in the the devices tab