mirror of
https://github.com/storybookjs/storybook.git
synced 2025-04-04 16:51:09 +08:00
FIX by using rawEvent rather then event
This commit is contained in:
parent
136d184ccb
commit
0908a54122
@ -171,7 +171,7 @@ export class PostmsgTransport {
|
||||
: `<span style="color: #FFAE00">${event.type}</span>`;
|
||||
|
||||
event.source =
|
||||
source || this.config.page === 'preview' ? event.origin : getEventSourceUrl(rawEvent);
|
||||
source || this.config.page === 'preview' ? rawEvent.origin : getEventSourceUrl(rawEvent);
|
||||
|
||||
if (!event.source) {
|
||||
pretty.error(
|
||||
|
Loading…
x
Reference in New Issue
Block a user