Commit dd7304209ef08f5c8251a6ce846c3aae5201dfeb

Authored by 田强
1 parent d3954565

fix: 删除 dom 判断错误

Showing 1 changed file with 2 additions and 2 deletions
@@ -39,8 +39,8 @@ function callback(mutationList, observer) { @@ -39,8 +39,8 @@ function callback(mutationList, observer) {
39 const nodes = mutation.addedNodes; 39 const nodes = mutation.addedNodes;
40 nodes.forEach((node) => { 40 nodes.forEach((node) => {
41 if ( 41 if (
42 - (node.innerText =  
43 - "Disconnected from the devServer, trying to reconnect...") 42 + node.innerText ===
  43 + "Disconnected from the devServer, trying to reconnect..."
44 ) { 44 ) {
45 node.parentNode.removeChild(node); 45 node.parentNode.removeChild(node);
46 } 46 }