<reponame>anhdhbn/selenium-stealth
from pathlib import Path
from .wrapper import evaluateOnNewDocument
from selenium.webdriver import Chrome as Driver


def webgl_vendor_override(
    driver: Driver,
    webgl_vendor: str,
    renderer: str,
    **kwargs
) -> None:
    evaluateOnNewDocument(
        driver, Path(__file__).parent.joinpath("js/webgl.vendor.js").read_text(),
        webgl_vendor,
        renderer,
    )

from pathlib import Path
from .wrapper import evaluateOnNewDocument
from selenium.webdriver import Chrome as Driver


def webgl_vendor_override(
    driver: Driver,
    webgl_vendor: str,
    renderer: str,
    **kwargs
) -> None:
    evaluateOnNewDocument(
        driver, Path(__file__).parent.joinpath("js/webgl.vendor.js").read_text(),
        webgl_vendor,
        renderer,
    )