aboutsummaryrefslogtreecommitdiffstats
path: root/tools/feed-window-dom-test.js
diff options
context:
space:
mode:
Diffstat (limited to 'tools/feed-window-dom-test.js')
-rw-r--r--tools/feed-window-dom-test.js4
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/feed-window-dom-test.js b/tools/feed-window-dom-test.js
index 72ca535..c86e98e 100644
--- a/tools/feed-window-dom-test.js
+++ b/tools/feed-window-dom-test.js
@@ -3,7 +3,7 @@
// page keeps its length, the row under your eyes never moves when the window
// shifts, and scrolling back up brings the top posts back.
// Run: bun tools/feed-window-dom-test.js
-import puppeteer from 'puppeteer-core';
+import puppeteer from './puppeteer.js';
import { cacheKeyFor } from '../src/wallet.js';
import { generateSecretKey, getPublicKey, finalizeEvent } from 'nostr-tools/pure';
import { buildHtml } from '../build.js';
@@ -25,7 +25,7 @@ const server = Bun.serve({ port: 5305, fetch: (req) => {
if (path.startsWith('/punks')) return new Response(Bun.file('dist' + path));
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: 'read', executablePath: '/usr/bin/google-chrome', headless: 'new', args: ['--no-sandbox'] });
const page = await browser.newPage();
// the stub relay holds every post: a kind-1 request is answered from it
// (honouring until/limit), everything else gets a bare EOSE