fix(core): update

This commit is contained in:
2022-01-28 17:40:12 +01:00
parent a6e262bbae
commit f299cff4c9
4 changed files with 207 additions and 37 deletions

View File

@ -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.
*/

View File

@ -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
}