about summary refs log tree commit diff
path: root/src/lib/broadcast/index.web.ts
diff options
context:
space:
mode:
authorEric Bailey <git@esb.lol>2023-12-12 13:19:27 -0600
committerGitHub <noreply@github.com>2023-12-12 11:19:27 -0800
commite7141a77d87a25162bf9c075310e097c84017920 (patch)
treef948783bf7aea9d78a03af65c38be0470ade9f8b /src/lib/broadcast/index.web.ts
parentc6ab6e8b8e81c1e2d72973a420cfea7aecc6e425 (diff)
downloadvoidsky-e7141a77d87a25162bf9c075310e097c84017920.tar.zst
Stub broadcast channel for unspported contexts (#2175)
Diffstat (limited to 'src/lib/broadcast/index.web.ts')
-rw-r--r--src/lib/broadcast/index.web.ts3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/broadcast/index.web.ts b/src/lib/broadcast/index.web.ts
index 33b3548ad..ca202ec80 100644
--- a/src/lib/broadcast/index.web.ts
+++ b/src/lib/broadcast/index.web.ts
@@ -1 +1,2 @@
-export default BroadcastChannel
+import Stub from '#/lib/broadcast/stub'
+export default 'BroadcastChannel' in window ? window.BroadcastChannel : Stub