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.js +4 -0
- package/dist/index.js.map +1 -1
- package/dist/index.umd.js +4 -0
- package/dist/index.umd.js.map +1 -1
- package/dist/index.umd.min.js +3 -3
- package/dist/index.umd.min.js.map +1 -1
- package/package.json +1 -1
package/dist/index.js
CHANGED
|
@@ -29578,6 +29578,10 @@ if (typeof window !== 'undefined') {
|
|
|
29578
29578
|
*/
|
|
29579
29579
|
const registerEventListener = (eventName, actionFun) => {
|
|
29580
29580
|
let eventBus = window.rjEventCenter;
|
|
29581
|
+
if (!eventBus) {
|
|
29582
|
+
initEventCenter();
|
|
29583
|
+
eventBus = window.rjEventCenter;
|
|
29584
|
+
}
|
|
29581
29585
|
if (eventBus && eventBus.register) {
|
|
29582
29586
|
eventBus.register(eventName, actionFun);
|
|
29583
29587
|
}
|