isdata-customer-sdk 0.1.45 → 0.1.46

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/dist/index.umd.js CHANGED
@@ -29588,6 +29588,10 @@ if (typeof window !== 'undefined') {
29588
29588
  */
29589
29589
  const registerEventListener = (eventName, actionFun) => {
29590
29590
  let eventBus = window.rjEventCenter;
29591
+ if (!eventBus) {
29592
+ initEventCenter();
29593
+ eventBus = window.rjEventCenter;
29594
+ }
29591
29595
  if (eventBus && eventBus.register) {
29592
29596
  eventBus.register(eventName, actionFun);
29593
29597
  }