diff options
Diffstat (limited to 'tools/quote-card-test.js')
| -rw-r--r-- | tools/quote-card-test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/quote-card-test.js b/tools/quote-card-test.js index 2cb9d41..3544c31 100644 --- a/tools/quote-card-test.js +++ b/tools/quote-card-test.js @@ -6,7 +6,7 @@ // fiatjaf's, chosen because it will still be there tomorrow. // // Run: bun tools/quote-card-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'; @@ -29,7 +29,7 @@ const FAR = 'nevent1qvzqqqqqqypzqntcggz30qhq60ltqdx32zku9d46unhrkjtcv7fml7jx3dh4 const html = await buildHtml({ minify: true, pwa: false }); const server = Bun.serve({ port: 5269, 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(); // --slow: the relays miss the quoted note the first time it is asked for // (ours was down for an evening once), so the row freezes with the fallback |
