broadcast-channel
Version:
A BroadcastChannel that works in New Browsers, Old Browsers, WebWorkers, NodeJs, Deno and iframes
25 lines (22 loc) • 534 B
JavaScript
/**
* because babel can only export on default-attribute,
* we use this for the non-module-build
* this ensures that users do not have to use
* var BroadcastChannel = require('broadcast-channel').default;
* but
* var BroadcastChannel = require('broadcast-channel');
*/
import {
BroadcastChannel,
createLeaderElection,
clearNodeFolder,
enforceOptions,
beLeader
} from './index.js';
module.exports = {
BroadcastChannel,
createLeaderElection,
clearNodeFolder,
enforceOptions,
beLeader
};