Skip to content

Commit

Permalink
REVERT the rename of iframe.html
Browse files Browse the repository at this point in the history
  • Loading branch information
ndelangen committed Jul 27, 2018
1 parent 07cf773 commit cec1a3a
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion addons/storyshots/storyshots-puppeteer/src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ export const imageSnapshot = (customConfig = {}) => {

const encodedKind = encodeURIComponent(context.kind);
const encodedStoryName = encodeURIComponent(context.story);
const storyUrl = `/preview.html?selectedKind=${encodedKind}&selectedStory=${encodedStoryName}`;
const storyUrl = `/iframe.html?selectedKind=${encodedKind}&selectedStory=${encodedStoryName}`;
const url = storybookUrl + storyUrl;
if (!browser || !page) {
logger.error(
Expand Down
2 changes: 1 addition & 1 deletion lib/core/src/client/manager/provider.js
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ export default class ReactProvider extends Provider {
}

const queryString = qs.stringify(queryParams);
const url = `preview.html?${queryString}`;
const url = `iframe.html?${queryString}`;
return <Preview url={url} />;
}

Expand Down
2 changes: 1 addition & 1 deletion lib/core/src/server/config/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,5 +56,5 @@ export function getEntries(configDir) {
manager.unshift(storybookCustomAddonsPath);
}

return { preview, manager };
return { iframe: preview, manager };
}
4 changes: 2 additions & 2 deletions lib/core/src/server/middleware.js
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,9 @@ export default function(configDir, loadOptions, quiet) {
res.sendFile(path.join(`${__dirname}/public/index.html`));
});

router.get('/preview.html', (req, res) => {
router.get('/iframe.html', (req, res) => {
res.set('Content-Type', 'text/html');
res.sendFile(path.join(`${__dirname}/public/preview.html`));
res.sendFile(path.join(`${__dirname}/public/iframe.html`));
});

if (stats.toJson().errors.length) {
Expand Down

0 comments on commit cec1a3a

Please sign in to comment.