fix(core): update
This commit is contained in:
@ -1,6 +1,11 @@
|
||||
import { TypedRequest } from '@apiglobal/typedrequest';
|
||||
import * as plugins from './dees-comms.plugins';
|
||||
|
||||
let BroadcastChannel = globalThis.BroadcastChannel;
|
||||
if (!BroadcastChannel) {
|
||||
BroadcastChannel = plugins.BroadCastChannelPolyfill as any;
|
||||
}
|
||||
|
||||
/**
|
||||
* a comm class for client side communication between workers and tabs.
|
||||
*/
|
||||
|
@ -3,3 +3,10 @@ import * as typedrequestInterfaces from '@apiglobal/typedrequest-interfaces';
|
||||
import * as typedrequest from '@apiglobal/typedrequest';
|
||||
|
||||
export { typedrequestInterfaces, typedrequest };
|
||||
|
||||
// third party scope
|
||||
import { BroadcastChannel as BroadCastChannelPolyfill } from 'broadcast-channel';
|
||||
|
||||
export {
|
||||
BroadCastChannelPolyfill
|
||||
}
|
Reference in New Issue
Block a user