Skip to content

A local-first personal finance app

:electron: Removed new shared array buffer warning on Electron (#8118)

Michael Clarke874db07e337
diff --git a/packages/desktop-client/src/components/SharedArrayBufferWarning.tsx b/packages/desktop-client/src/components/SharedArrayBufferWarning.tsx
index 42079035e9..d775be2393 100644
--- a/packages/desktop-client/src/components/SharedArrayBufferWarning.tsx
+++ b/packages/desktop-client/src/components/SharedArrayBufferWarning.tsx
@@ -4,6 +4,7 @@ import { SvgAlertTriangle } from '@actual-app/components/icons/v2';
import { styles } from '@actual-app/components/styles';
import { theme } from '@actual-app/components/theme';
import { Tooltip } from '@actual-app/components/tooltip';
+import { isElectron } from '@actual-app/core/shared/environment';
import { css } from '@emotion/css';
import { Link } from '#components/common/Link';
@@ -11,8 +12,8 @@ import { Link } from '#components/common/Link';
export function SharedArrayBufferWarning() {
const hasSharedArrayBuffer = typeof SharedArrayBuffer !== 'undefined';
- // Only show warning if SharedArrayBuffer is not supported
- if (hasSharedArrayBuffer) {
+ // Only show warning if SharedArrayBuffer is required and not supported
+ if (isElectron() || hasSharedArrayBuffer) {
return null;
}
diff --git a/upcoming-release-notes/8118.md b/upcoming-release-notes/8118.md
new file mode 100644
index 0000000000..b6122c050f
--- /dev/null
+++ b/upcoming-release-notes/8118.md
@@ -0,0 +1,6 @@
+---
+category: Bugfix
+authors: [MikesGlitch]
+---
+
+Fix SharedArrayBuffer warning showing in new warning indicator when using desktop app