diff options
Diffstat (limited to 'tools/feed-custom-test.js')
| -rw-r--r-- | tools/feed-custom-test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/feed-custom-test.js b/tools/feed-custom-test.js index c2c94de..ef595ff 100644 --- a/tools/feed-custom-test.js +++ b/tools/feed-custom-test.js @@ -4,7 +4,7 @@ // feed, and deleting a feed. No relays are contacted for real — the // WebSocket shim answers the subscriptions. // Run: bun tools/feed-custom-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'; @@ -28,7 +28,7 @@ const PACK_NADDR = naddrEncode({ kind: 39089, pubkey: PACK.pubkey, identifier: ' const html = await buildHtml({ minify: true, pwa: false }); const server = Bun.serve({ port: 5297, 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((pack) => { window.__reqs = []; |
