因执行顺序问题导致的打印占用登录,先取消打印。
建议先判断浏览器再执行登录,毕竟没有浏览器就干掉了绝大数多少插件了,机器人也就没有启动的意义。知道pup打打印信息还是很有必要的。 Signed-off-by: 柠檬冲水 <10424920+ningmengchongshui@user.noreply.gitee.com>
This commit is contained in:
parent
7b12cedc83
commit
aba6e37bef
|
@ -35,11 +35,9 @@ if (process.platform == "linux" || process.platform == "android") {
|
||||||
if (chromiumPath) {
|
if (chromiumPath) {
|
||||||
skipDownload = true;
|
skipDownload = true;
|
||||||
executablePath = realpathSync(chromiumPath);
|
executablePath = realpathSync(chromiumPath);
|
||||||
console.info("[Chromium] start");
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
} catch (error) {
|
} catch {
|
||||||
console.error("Failed to get Chromium path:", error);
|
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -59,7 +57,6 @@ if (process.platform == "linux" || process.platform == "android") {
|
||||||
if (existsSync(item)) {
|
if (existsSync(item)) {
|
||||||
skipDownload = true;
|
skipDownload = true;
|
||||||
executablePath = item;
|
executablePath = item;
|
||||||
console.info("[Chromium] start");
|
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -68,7 +65,6 @@ if (process.platform == "linux" || process.platform == "android") {
|
||||||
* arm64/arrch64
|
* arm64/arrch64
|
||||||
*/
|
*/
|
||||||
if (arch == "arm64" || arch == "aarch64") {
|
if (arch == "arm64" || arch == "aarch64") {
|
||||||
console.info("[arm64/aarch64] system");
|
|
||||||
skipDownload = true;
|
skipDownload = true;
|
||||||
}
|
}
|
||||||
} else if (process.platform == "win32" && existsSync(win32Edge)) {
|
} else if (process.platform == "win32" && existsSync(win32Edge)) {
|
||||||
|
@ -77,7 +73,6 @@ if (process.platform == "linux" || process.platform == "android") {
|
||||||
*/
|
*/
|
||||||
skipDownload = true;
|
skipDownload = true;
|
||||||
executablePath = win32Edge;
|
executablePath = win32Edge;
|
||||||
console.info("[Win32 Edge] start");
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* @type {import("puppeteer").Configuration}
|
* @type {import("puppeteer").Configuration}
|
||||||
|
|
Loading…
Reference in New Issue