Home

mweinbach / agent-coworker

publicmweinbach/agent-coworker
Overview Code History Branches Pull requestsIssuesInsights
main
HomeOverview Code PRsIssues

fix(desktop): fix SharedArrayBuffer is not defined error in docx preview

6 months ago

5d35cc8
Authored
Max Weinbach4/15/2026, 10:43:24 PM
The Electron renderer doesn't have SharedArrayBuffer available without cross-origin isolation headers. Replace the conditional check with an unconditional copy to a fresh ArrayBuffer, which is safe and fast for preview-sized files.

Made-with: Cursor

Parentca05786

1 file changed
  • apps/desktop/src/ui/FilePreviewModal.tsx+3−7