diff options
Diffstat (limited to 'tools/profile-open-test.js')
| -rw-r--r-- | tools/profile-open-test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/profile-open-test.js b/tools/profile-open-test.js index aa0c943..c09a239 100644 --- a/tools/profile-open-test.js +++ b/tools/profile-open-test.js @@ -10,7 +10,7 @@ // Measured as the browser measures it — layout-shift entries after the tap. // // Run: bun tools/profile-open-test.js -import puppeteer from 'puppeteer-core'; +import puppeteer from './puppeteer.js'; import { generateMnemonic } from '@scure/bip39'; import { wordlist } from '@scure/bip39/wordlists/english'; import { cacheKeyFor } from '../src/wallet.js'; @@ -45,7 +45,7 @@ console.log(` ${authors.length} people with a real bio, ${notes.length} of the const html = await buildHtml({ minify: true, pwa: false }); const server = Bun.serve({ port: 5276, fetch: () => new Response(html, { headers: { 'content-type': 'text/html' } }) }); -const browser = await puppeteer.launch({ executablePath: '/usr/bin/google-chrome', headless: 'new', args: ['--no-sandbox'] }); +const browser = await puppeteer.launch({ relays: 'read', executablePath: '/usr/bin/google-chrome', headless: 'new', args: ['--no-sandbox'] }); const page = await browser.newPage(); await page.evaluateOnNewDocument(() => { window.__shift = 0; |
