Skip to content

Commit

Permalink
Merge pull request #86 from storybookjs/fix/cleanup-logs
Browse files Browse the repository at this point in the history
cleanup page opened log
  • Loading branch information
shilman authored Apr 7, 2022
2 parents 0649aa0 + 11580c1 commit d489793
Showing 1 changed file with 0 additions and 2 deletions.
2 changes: 0 additions & 2 deletions src/setup-page.ts
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,6 @@ const sanitizeURL = (url) => {
};

export const setupPage = async (page) => {
const start = new Date();
const targetURL = sanitizeURL(process.env.TARGET_URL || `http://localhost:6006`);
const viewMode = process.env.VIEW_MODE || 'story';
const renderedEvent = viewMode === 'docs' ? 'docsRendered' : 'storyRendered';
Expand All @@ -39,7 +38,6 @@ export const setupPage = async (page) => {

throw err;
}); // FIXME: configure
console.log(`page loaded in ${new Date() - start}ms.`);

// if we ever want to log something from the browser to node
await page.exposeBinding('logToPage', (_, message) => console.log(message));
Expand Down

0 comments on commit d489793

Please sign in to comment.