Skip to content

Commit

Permalink
pie handless
Browse files Browse the repository at this point in the history
  • Loading branch information
Hiram committed May 5, 2024
1 parent 8e520d2 commit 5db2066
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/main/utils/pie.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ const puppeteerInElectron = async (url: string, script: string = '', customRegex

try {
const browser = await pie.connect(app, puppeteer as any); // 连接puppeteer
snifferWindow = new BrowserWindow({ show: true }); // 创建无界面窗口
snifferWindow = new BrowserWindow({ show: false }); // 创建无界面窗口
snifferWindow.webContents.setAudioMuted(true); // 设置窗口静音
const page = await pie.getPage(browser, snifferWindow); // 获取页面

Expand Down

0 comments on commit 5db2066

Please sign in to comment.