Skip to content

Commit

Permalink
cleanup page opened log
Browse files Browse the repository at this point in the history
  • Loading branch information
yannbf committed Apr 7, 2022
1 parent 0649aa0 commit 11580c1
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 11580c1

Please sign in to comment.