Skip to content

Private AI meeting notes that stay on your computer. No meeting bot. Free and open source for Mac, Windows and Linux. An alternative to Granola, Otter and Fireflies.

Settings: the permission row reads the platform safely where there is no window bridge (tests)

christianmat977fe0ec1616
diff --git a/app/src/renderer/src/screens/Settings.tsx b/app/src/renderer/src/screens/Settings.tsx
index 8e10f865..11814e77 100644
--- a/app/src/renderer/src/screens/Settings.tsx
+++ b/app/src/renderer/src/screens/Settings.tsx
@@ -294,7 +294,7 @@ export function PermissionRow({ kind, status, onAsk }: { kind: PermissionKind; s
</p>
<p className="settings-description">{c.reason}</p>
</div>
- {status !== 'restricted' && (ask || settingsPage(window.yogurt.os, kind)) ? (
+ {status !== 'restricted' && (ask || settingsPage(globalThis.window?.yogurt?.os ?? 'darwin', kind)) ? (
<button data-testid={ask ? 'permission-ask' : 'permission-open'} onClick={ask ? onAsk : () => void window.yogurt.permissions.open(kind)}
className={`workspace-button settings-action${granted ? '' : ' primary'}`}>
<span>{!status || granted ? t('Manage') : turnOn ? t('Turn on') : osWords({ mac: t('Open System Settings'), other: t('Open Settings') })}</span>