Move some patch code to external files

This commit is contained in:
redphx
2024-05-23 06:22:25 +07:00
parent 88df490c50
commit e18e05589a
6 changed files with 52 additions and 48 deletions

View File

@@ -0,0 +1,7 @@
const msg = JSON.parse(e);
if (msg.reason === 'WarningForBeingIdle' && !window.location.pathname.includes('/launch/')) {
try {
this.sendKeepAlive();
return;
} catch (ex) { console.log(ex); }
}