From a6551957e7cbc8e8b3e8c42fd257396c6b6e539b Mon Sep 17 00:00:00 2001 From: Vendicated Date: Tue, 4 Oct 2022 13:17:00 +0200 Subject: fix NoDevtoolsWarning for web --- src/plugins/STFU.ts | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/plugins/STFU.ts b/src/plugins/STFU.ts index 96325ff..ff7094c 100644 --- a/src/plugins/STFU.ts +++ b/src/plugins/STFU.ts @@ -8,8 +8,8 @@ export default definePlugin({ patches: [{ find: "setDevtoolsCallbacks", replacement: { - match: /\.setDevtoolsCallbacks\(.+?else/, - replace: ".setDevtoolsCallbacks(null,null);else" + match: /if\(.{0,10}\|\|"0.0.0"!==.{0,2}\.remoteApp\.getVersion\(\)\)/, + replace: "if(false)" } }] }); -- cgit