fix NoDevtoolsWarning for web

This commit is contained in:
Vendicated 2022-10-04 13:17:00 +02:00
parent 3a9f692644
commit a6551957e7
No known key found for this signature in database
GPG Key ID: EC781ADFB93EFFA3

@ -8,8 +8,8 @@ export default definePlugin({
patches: [{ patches: [{
find: "setDevtoolsCallbacks", find: "setDevtoolsCallbacks",
replacement: { replacement: {
match: /\.setDevtoolsCallbacks\(.+?else/, match: /if\(.{0,10}\|\|"0.0.0"!==.{0,2}\.remoteApp\.getVersion\(\)\)/,
replace: ".setDevtoolsCallbacks(null,null);else" replace: "if(false)"
} }
}] }]
}); });