diff options
Diffstat (limited to 'tools/poll-test.js')
| -rw-r--r-- | tools/poll-test.js | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/poll-test.js b/tools/poll-test.js index bc1715e..edcb061 100644 --- a/tools/poll-test.js +++ b/tools/poll-test.js @@ -4,7 +4,7 @@ // caught at the socket so the test never votes on someone's real poll. // // Run: bun tools/poll-test.js -import puppeteer from 'puppeteer-core'; +import puppeteer from './puppeteer.js'; import { SimplePool } from 'nostr-tools/pool'; import { cacheKeyFor } from '../src/wallet.js'; import { neventOf } from '../src/nostr.js'; @@ -21,7 +21,7 @@ const labels = poll.tags.filter((x) => x[0] === 'option').map((x) => x[2]); const html = await buildHtml({ minify: true, pwa: false }); const server = Bun.serve({ port: 5273, 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.__votes = []; |
