diff --git a/packages/main/src/fingerprint/index.ts b/packages/main/src/fingerprint/index.ts index 77fa039..55400f0 100644 --- a/packages/main/src/fingerprint/index.ts +++ b/packages/main/src/fingerprint/index.ts @@ -73,7 +73,7 @@ async function connectBrowser(port: number, ipInfo: IP) { : await browser.newPage(); try { await attachFingerprintToPuppeteer(page, ipInfo); - await page.goto('https://browserleaks.com/canvas'); + // await page.goto('https://browserleaks.com/canvas'); } catch (error) { logger.error(error); } diff --git a/packages/main/src/services/commonService.ts b/packages/main/src/services/commonService.ts index 716c56b..3e7fc05 100644 --- a/packages/main/src/services/commonService.ts +++ b/packages/main/src/services/commonService.ts @@ -42,8 +42,10 @@ export const initCommonService = () => { ipcMain.handle( 'common-fetch-logs', async (_, module: 'Main' | 'Windows' | 'Proxy' | 'Services' | 'Api' = 'Main') => { + if (import.meta.env.DEV) { + return []; + } // read directory and get all folders - // read directory and get all files const logFiles = await new Promise((resolve, reject) => { readdir(`logs/${module}`, (err, files) => { if (err) {