mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-08 02:31:49 +08:00
Update lib/api/src/lib/StoryIndexClient.ts
Co-authored-by: Yann Braga <yannbf@gmail.com>
This commit is contained in:
parent
e265f122d1
commit
2badf07fc8
@ -20,7 +20,7 @@ export class StoryIndexClient {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
// Silently never emit events in bult storybook modes
|
// Silently never emit events in built storybook modes
|
||||||
addEventListener(event: string, cb: (...args: any[]) => void) {
|
addEventListener(event: string, cb: (...args: any[]) => void) {
|
||||||
if (this.source) this.source.addEventListener(event, cb);
|
if (this.source) this.source.addEventListener(event, cb);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user