use initPuppeteer to check if it has import correct

This commit is contained in:
bossgeekgo
2024-02-14 11:56:26 +08:00
parent a2c70add1c
commit 1854059761
2 changed files with 11 additions and 5 deletions
@@ -14,7 +14,7 @@ ensureConfigFileExist()
const isRunFromUi = Boolean(process.env.MAIN_BOSSGEEKGO_UI_RUN_MODE)
let puppeteer, StealthPlugin
async function initPuppeteer () {
export async function initPuppeteer () {
// production
if (
isRunFromUi