Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Story list is empty when loading the storybook inside an IFRAME #555

Closed
dompuiu opened this issue Oct 19, 2016 · 7 comments
Closed

Story list is empty when loading the storybook inside an IFRAME #555

dompuiu opened this issue Oct 19, 2016 · 7 comments
Assignees

Comments

@dompuiu
Copy link

dompuiu commented Oct 19, 2016

I am using the HTML Publisher Plugin from Jenkins to store a static compiled storybook. The HTML Publisher Plugin will load the storybook index.html inside an IFRAME.

It seems that when a storybook is loaded inside the iframe, the available stories are not shown inside the left menu.

This is image showing the problem:
image

You can notice that the first story is loaded in the right side of the screen, but the list is empty.

I recently upgrade to the latest version. In v1.x this problem did not exist.

@arunoda
Copy link
Member

arunoda commented Oct 20, 2016

Is there any error on the console?

@thani-sh
Copy link
Contributor

I think it has to do with the way the post msg channel is setup. I'll check this one out

@dompuiu
Copy link
Author

dompuiu commented Oct 20, 2016

There is no error on the console.

@thani-sh
Copy link
Contributor

Hi @dompuiu, it should work from v2.30.1

@rexxars
Copy link
Contributor

rexxars commented Nov 22, 2016

I'm using the latest version, but still can't see stories when iframed. The page hosting the iframe is served from a different origin, if that's at all helpful.

@thani-sh
Copy link
Contributor

Thanks @rexxars, I'll check it again

@rexxars
Copy link
Contributor

rexxars commented Nov 22, 2016

Submitted a PR to storybook-channel-postmsg which fixes this issue.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants