We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 75b5a8a commit e1f06f4Copy full SHA for e1f06f4
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