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') {
document.addEventListener('DOMContentLoaded', () => {
const intervalRequest = 3 * 1000 const intervalRequest = 3 * 1000
keepAliveServer() keepAliveServer()
setInterval(keepAliveServer, intervalRequest) setInterval(keepAliveServer, intervalRequest)
})
}
} }
export function isRightClick(ev: SyntheticEvent) { export function isRightClick(ev: SyntheticEvent) {