We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent f434382 commit b5eeeacCopy full SHA for b5eeeac
assets/pubsub.js
@@ -19,5 +19,7 @@ function publish(eventName, data) {
19
const promises = subscribers[eventName]
20
.map((callback) => callback(data))
21
return Promise.all(promises);
22
+ } else {
23
+ return Promise.resolve()
24
}
25
0 commit comments