diff options
author | Vendicated <vendicated@riseup.net> | 2022-10-04 13:17:00 +0200 |
---|---|---|
committer | Vendicated <vendicated@riseup.net> | 2022-10-04 13:17:00 +0200 |
commit | a6551957e7cbc8e8b3e8c42fd257396c6b6e539b (patch) | |
tree | e3ad3e5aecfa9edf94ba311909393cbf08c38e0f /src | |
parent | 3a9f6926442dd673bfac67424317e04b80bcc0f8 (diff) | |
download | Vencord-a6551957e7cbc8e8b3e8c42fd257396c6b6e539b.tar.gz Vencord-a6551957e7cbc8e8b3e8c42fd257396c6b6e539b.tar.bz2 Vencord-a6551957e7cbc8e8b3e8c42fd257396c6b6e539b.zip |
fix NoDevtoolsWarning for web
Diffstat (limited to 'src')
-rw-r--r-- | src/plugins/STFU.ts | 4 |
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)" } }] }); |