Skip to content

Commit

Permalink
去掉默认访问
Browse files Browse the repository at this point in the history
  • Loading branch information
niuniuland committed Dec 10, 2023
1 parent b158a61 commit a45e127
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion packages/main/src/fingerprint/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down
4 changes: 3 additions & 1 deletion packages/main/src/services/commonService.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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<string[]>((resolve, reject) => {
readdir(`logs/${module}`, (err, files) => {
if (err) {
Expand Down

0 comments on commit a45e127

Please sign in to comment.