fix gui keepGUIAlive

This commit is contained in:
Qing 2022-11-17 21:50:39 +08:00
parent 627ddef06a
commit cce15c9506

View File

@ -177,13 +177,9 @@ export function keepGUIAlive() {
}) })
} }
if (!process.env.NODE_ENV || process.env.NODE_ENV === 'production') { const intervalRequest = 3 * 1000
document.addEventListener('DOMContentLoaded', () => { keepAliveServer()
const intervalRequest = 3 * 1000 setInterval(keepAliveServer, intervalRequest)
keepAliveServer()
setInterval(keepAliveServer, intervalRequest)
})
}
} }
export function isRightClick(ev: SyntheticEvent) { export function isRightClick(ev: SyntheticEvent) {