@intuned/runtime-dev 1.7.0-dev-52-7 → 1.7.0-dev-52-8
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -43,18 +43,16 @@ async function getProductionPlaywrightConstructs({
|
|
|
43
43
|
if (headless) {
|
|
44
44
|
extraArgs.push("--headless=new");
|
|
45
45
|
}
|
|
46
|
-
const executablePath = playwright.chromium.executablePath();
|
|
47
|
-
const chromium127Path = executablePath.replace("chromium-1117", "chromium-1124");
|
|
48
|
-
const isChrome127There = await (0, _fsExtra.exists)(chromium127Path);
|
|
49
|
-
const userAgent = `Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/Chrome/136.0.7103.25 Safari/537.36`;
|
|
50
46
|
const userDataDir = await createUserDirWithPreferences();
|
|
51
47
|
const nopechaExtensionPath = _path.default.join(__dirname, "./assets/nopecha-extension");
|
|
52
48
|
if (!(await fs.pathExists(nopechaExtensionPath))) {
|
|
53
49
|
throw new Error(`Nopecha extension not found at path: ${nopechaExtensionPath}`);
|
|
54
50
|
}
|
|
55
51
|
const context = await playwright.chromium.launchPersistentContext("...", {
|
|
56
|
-
headless
|
|
52
|
+
headless,
|
|
57
53
|
viewport: null,
|
|
54
|
+
proxy,
|
|
55
|
+
downloadsPath,
|
|
58
56
|
args: [`--load-extension=${nopechaExtensionPath}`, `--disable-extensions-except=${nopechaExtensionPath}`]
|
|
59
57
|
});
|
|
60
58
|
context.once("close", async () => {
|