diff --git a/src/plugins/consoleJanitor/index.tsx b/src/plugins/consoleJanitor/index.tsx index ab0ac9bb..1dbc3b07 100644 --- a/src/plugins/consoleJanitor/index.tsx +++ b/src/plugins/consoleJanitor/index.tsx @@ -148,15 +148,15 @@ export default definePlugin({ { find: "is not a valid locale.", replacement: { - match: /void \i\.error\(""\.concat\(\i," is not a valid locale."\)\)/, - replace: "" + match: /\i\.error\(""\.concat\(\i," is not a valid locale."\)\)/, + replace: '""' } }, { find: '"AppCrashedFatalReport: getLastCrash not supported."', replacement: { - match: /void console\.log\("AppCrashedFatalReport: getLastCrash not supported\."\)/, - replace: "" + match: /console\.log\("AppCrashedFatalReport: getLastCrash not supported\."\)/, + replace: '""' } }, { diff --git a/src/plugins/customidle/index.ts b/src/plugins/customidle/index.ts index 5ff0c81a..97a77973 100644 --- a/src/plugins/customidle/index.ts +++ b/src/plugins/customidle/index.ts @@ -49,7 +49,7 @@ export default definePlugin({ replace: "$self.handleOnline()" }, { - match: /(setInterval\(\i,30\*)\i\.\i/, + match: /(setInterval\(\i,\.25\*)\i\.\i/, replace: "$1$self.getIntervalDelay()" // For web installs } ]