diff options
Diffstat (limited to 'tools/feed-live-test.js')
| -rw-r--r-- | tools/feed-live-test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/feed-live-test.js b/tools/feed-live-test.js index 8f80d46..b9879d0 100644 --- a/tools/feed-live-test.js +++ b/tools/feed-live-test.js @@ -10,7 +10,7 @@ // notice takes you up to them when tapped. // // Run: bun tools/feed-live-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'; @@ -41,7 +41,7 @@ const server = Bun.serve({ port: 5296, fetch: async (req) => { } return 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: 'live', executablePath: '/usr/bin/google-chrome', headless: 'new', args: ['--no-sandbox'] }); const page = await browser.newPage(); await page.evaluateOnNewDocument(() => { window.__feedReqs = 0; |
