Skip to content

Commit

Permalink
Ditto
Browse files Browse the repository at this point in the history
  • Loading branch information
James-Yu committed Sep 21, 2023
1 parent 4e70115 commit 8d03aab
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/eventbus.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ export class EventBus {
fire<T extends keyof EventArgs>(eventName: T, arg: EventArgs[T]): void
fire(eventName: EventName): void
fire(eventName: EventName, arg?: any): void {
if ([DocumentChanged, ViewerStatusChanged].includes(eventName)) {
if (![DocumentChanged, ViewerStatusChanged].includes(eventName)) {
logger.log(eventName + (arg ? `: ${JSON.stringify(arg)}` : ''))
}
this.eventEmitter.emit(eventName, arg)
Expand Down

0 comments on commit 8d03aab

Please sign in to comment.