fix NoDevtoolsWarning for web
This commit is contained in:
parent
3a9f692644
commit
a6551957e7
@ -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)"
|
||||
}
|
||||
}]
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user