Update "disableIndexDbLogging" patch

This commit is contained in:
redphx 2024-05-05 18:29:04 +07:00
parent 8fb1787222
commit cadc7987b7

View File

@ -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