Skip to content

Commit 22cd36f

Browse files
committed
fix: prepare for the bridge module also using podium global
1 parent bb37155 commit 22cd36f

File tree

1 file changed

+5
-2
lines changed

1 file changed

+5
-2
lines changed

src/MessageBus.js

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@ function getGlobalObjects() {
2020
let objs = getGlobalThis()['@podium'];
2121
if (!objs) {
2222
objs = {};
23+
getGlobalThis()['@podium'] = objs;
24+
}
25+
if (!objs.ee) {
2326
objs.ee = new EventEmitter();
27+
}
28+
if (!objs.sink) {
2429
objs.sink = new Sink();
25-
getGlobalThis()['@podium'] = objs;
2630
}
27-
2831
return objs;
2932
}
3033

0 commit comments

Comments
 (0)