aboutsummaryrefslogtreecommitdiff
path: root/src/plugins/STFU.ts
diff options
context:
space:
mode:
Diffstat (limited to 'src/plugins/STFU.ts')
-rw-r--r--src/plugins/STFU.ts4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/plugins/STFU.ts b/src/plugins/STFU.ts
index ee9c90f..afa29f5 100644
--- a/src/plugins/STFU.ts
+++ b/src/plugins/STFU.ts
@@ -7,8 +7,8 @@ export default definePlugin({
patches: [{
find: "setDevtoolsCallbacks",
replacement: {
- match: /\.default=function.+$/,
- replace: ".default=function(){}}"
+ match: /\.setDevtoolsCallbacks\(.+?else/,
+ replace: ".setDevtoolsCallbacks(null,null);else"
}
}]
});