Skip to content

Commit

Permalink
Update postmsg channel module
Browse files Browse the repository at this point in the history
  • Loading branch information
thani-sh committed Nov 17, 2016
1 parent 153ace0 commit 02a528c
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@
"@kadira/storybook-addon-actions": "^1.0.2",
"@kadira/storybook-addon-links": "^1.0.0",
"@kadira/storybook-addons": "^1.5.0",
"@kadira/storybook-channel-postmsg": "^1.1.0",
"@kadira/storybook-channel-postmsg": "^2.0.0",
"@kadira/storybook-ui": "^3.8.0",
"airbnb-js-shims": "^1.0.1",
"autoprefixer": "^6.3.7",
Expand Down
2 changes: 1 addition & 1 deletion src/client/manager/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import Preview from './preview';
export default class ReactProvider extends Provider {
constructor() {
super();
this.channel = createChannel();
this.channel = createChannel({ page: 'manager' });
addons.setChannel(this.channel);
}

Expand Down
2 changes: 1 addition & 1 deletion src/client/preview/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ const context = { storyStore, reduxStore };

if (isBrowser) {
const queryParams = qs.parse(window.location.search.substring(1));
const channel = createChannel();
const channel = createChannel({ page: 'preview' });
channel.on('setCurrentStory', (data) => {
reduxStore.dispatch(selectStory(data.kind, data.story));
});
Expand Down

0 comments on commit 02a528c

Please sign in to comment.