mirror of
https://github.com/overleaf/overleaf.git
synced 2024-11-29 18:23:32 -05:00
11 lines
396 B
TypeScript
11 lines
396 B
TypeScript
|
import {
|
||
|
detachChannelId,
|
||
|
detachChannel as _detachChannel,
|
||
|
} from '../../../frontend/js/shared/context/detach-context'
|
||
|
|
||
|
// for tests, assert that detachChannel is defined, as BroadcastChannel is available
|
||
|
export const detachChannel = _detachChannel!
|
||
|
|
||
|
// simulate messages from another tab by posting them to this channel
|
||
|
export const testDetachChannel = new BroadcastChannel(detachChannelId)
|