aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVendicated <vendicated@riseup.net>2022-10-04 13:17:00 +0200
committerVendicated <vendicated@riseup.net>2022-10-04 13:17:00 +0200
commita6551957e7cbc8e8b3e8c42fd257396c6b6e539b (patch)
treee3ad3e5aecfa9edf94ba311909393cbf08c38e0f
parent3a9f6926442dd673bfac67424317e04b80bcc0f8 (diff)
downloadVencord-a6551957e7cbc8e8b3e8c42fd257396c6b6e539b.tar.gz
Vencord-a6551957e7cbc8e8b3e8c42fd257396c6b6e539b.tar.bz2
Vencord-a6551957e7cbc8e8b3e8c42fd257396c6b6e539b.zip
fix NoDevtoolsWarning for web
-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 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)"
}
}]
});