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