[GH-ISSUE #41] Safari IPC issue "TypeError: undefined is not an object ("evaluating 'this.channel.postMessage')" #35

Closed
opened 2026-05-23 08:27:13 -06:00 by gitea-mirror · 1 comment
Owner

Originally created by @appy-one on GitHub (Aug 25, 2021).
Original GitHub issue: https://github.com/appy-one/acebase/issues/41

Originally assigned to: @appy-one on GitHub.

Safari (on Mac & iOS) doesn't support BroadcastChannel, which is checked for in the browser IPCPeer constructor but not in its sendMessage method, which is actively used by AceBase.

This results in error "TypeError: undefined is not an object ("evaluating 'this.channel.postMessage')" and the database not being created correctly / working properly.

This affects Safari on Mac, and all browsers on iOS (they all use Safari behind the scenes)

Originally created by @appy-one on GitHub (Aug 25, 2021). Original GitHub issue: https://github.com/appy-one/acebase/issues/41 Originally assigned to: @appy-one on GitHub. Safari (on Mac & iOS) doesn't support `BroadcastChannel`, which is checked for in the browser IPCPeer constructor but not in its `sendMessage` method, which is actively used by AceBase. This results in error "TypeError: undefined is not an object ("evaluating 'this.channel.postMessage')" and the database not being created correctly / working properly. This affects Safari on Mac, and all browsers on iOS (they all use Safari behind the scenes)
gitea-mirror 2026-05-23 08:27:13 -06:00
Author
Owner

@appy-one commented on GitHub (Aug 27, 2021):

Implemented a simple BroadcastChannel polyfill for Safari / iOS, published with v1.8.4

<!-- gh-comment-id:907365124 --> @appy-one commented on GitHub (Aug 27, 2021): Implemented a simple `BroadcastChannel` polyfill for Safari / iOS, published with v1.8.4
Sign in to join this conversation.
No milestone
No project
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set.

Reference: github-starred/acebase#35
No description provided.