From 18c2bd63e62bdf77143ca1f759cb58dc4dc8eb88 Mon Sep 17 00:00:00 2001 From: ngschaider Date: Sun, 16 Apr 2023 23:04:35 +0200 Subject: [PATCH] Make readme.md more consistent and fix small error Changed the naming of the imported puppeteer-extra-plugin-stealth from "stealth" to "StealthPlugin" to be more consistent with the rest of the ReadMe. Also actually called the function, otherwise there will obviously be an error. --- packages/playwright-extra/readme.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/packages/playwright-extra/readme.md b/packages/playwright-extra/readme.md index 6dd4d7c4..88c78468 100644 --- a/packages/playwright-extra/readme.md +++ b/packages/playwright-extra/readme.md @@ -30,10 +30,10 @@ const { chromium } = require('playwright-extra') // Load the stealth plugin and use defaults (all tricks to hide playwright usage) // Note: playwright-extra is compatible with most puppeteer-extra plugins -const stealth = require('puppeteer-extra-plugin-stealth')() +const StealthPlugin = require('puppeteer-extra-plugin-stealth')() // Add the plugin to playwright (any number of plugins can be added) -chromium.use(stealth) +chromium.use(StealthPlugin()) // That's it, the rest is playwright usage as normal 😊 chromium.launch({ headless: true }).then(async browser => {