Skip to content

Crawlee—A web scraping and browser automation library for Node.js to build reliable crawlers. In JavaScript and TypeScript. Extract data for AI, LLMs, RAG, or GPTs. Download HTML, PDF, JPG, PNG, and other files from websites. Works with Puppeteer, Playwright, Cheerio, JSDOM, and raw HTTP. Both headful and headless mode. With proxy rotation.

Fix misnamed constant

Ondra Urban90459eed844f
diff --git a/src/puppeteer_live_view_client.js b/src/puppeteer_live_view_client.js
index 322b2833c..02f9e5420 100644
--- a/src/puppeteer_live_view_client.js
+++ b/src/puppeteer_live_view_client.js
@@ -275,7 +275,7 @@ export const layout = (url) => {
<div id="page-detail" class="hidden"></div>
<script>
const ws = new WebSocket("${url.replace('https', 'wss')}");
- const DESTROY_FADEOUT = ${DESTROY_FADEOUT_MILLIS};
+ const DESTROY_FADEOUT_MILLIS = ${DESTROY_FADEOUT_MILLIS};
const createPage = ${createPage.toString()};
const createPageCollection = ${createPageCollection.toString()};
const createBrowser = ${createBrowser.toString()};