about summary refs log tree commit diff
path: root/src/lib/broadcast/index.web.ts
diff options
context:
space:
mode:
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