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

View File

@ -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)"
}
}]
});