mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-06-06 23:57:19 +02:00
Update "disableIndexDbLogging" patch
This commit is contained in:
parent
8fb1787222
commit
cadc7987b7
@ -59,12 +59,14 @@ const PATCHES = {
|
|||||||
|
|
||||||
// Disable IndexDB logging
|
// Disable IndexDB logging
|
||||||
disableIndexDbLogging(str: string) {
|
disableIndexDbLogging(str: string) {
|
||||||
const text = 'async addLog(e,t=1e4){';
|
const text = ',this.logsDb=new';
|
||||||
if (!str.includes(text)) {
|
if (!str.includes(text)) {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
|
|
||||||
return str.replace(text, text + 'return;');
|
// Replace log() with an empty function
|
||||||
|
let newCode = ',this.log=()=>{}';
|
||||||
|
return str.replace(text, newCode + text);
|
||||||
},
|
},
|
||||||
|
|
||||||
// Set custom website layout
|
// Set custom website layout
|
||||||
|
Loading…
x
Reference in New Issue
Block a user