mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 13:18:27 +02:00
Move some patch code to external files
This commit is contained in:
7
src/modules/patches/remote-play-keep-alive.js
Normal file
7
src/modules/patches/remote-play-keep-alive.js
Normal 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); }
|
||||
}
|
Reference in New Issue
Block a user