Update __init__.py

removed a duplicate line in cdp command code
This commit is contained in:
ok3721 2024-06-25 17:36:08 +08:00 committed by GitHub
parent 0aa5fbe252
commit a8a1589040
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with 0 additions and 2 deletions

View File

@ -499,8 +499,6 @@ class Chrome(selenium.webdriver.chrome.webdriver.WebDriver):
"Page.addScriptToEvaluateOnNewDocument",
{
"source": """
Object.defineProperty(window, "navigator", {
Object.defineProperty(window, "navigator", {
value: new Proxy(navigator, {
has: (target, key) => (key === "webdriver" ? false : key in target),