Files
better-xcloud/src/modules/patches/remote-play-keep-alive.js
2024-05-23 06:22:25 +07:00

8 lines
217 B
JavaScript

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