mirror of
https://github.com/geekgeekrun/geekgeekrun.git
synced 2026-05-23 09:12:42 +08:00
fix issue when click launch boss login page at second time after the last page closed, no thing happen.
This commit is contained in:
@@ -73,8 +73,12 @@ export async function main() {
|
||||
|
||||
const [page] = await browser.pages();
|
||||
|
||||
page.once('close', () => {
|
||||
page.once('close', async () => {
|
||||
browser.close()
|
||||
if (isRunFromUi) {
|
||||
const electron = await import('electron')
|
||||
electron.app.quit()
|
||||
}
|
||||
})
|
||||
|
||||
const { dispose: disposeNavigation } = await blockNavigation(page, (req) => !req.url().startsWith('https://www.zhipin.com'))
|
||||
|
||||
Reference in New Issue
Block a user