Skip to content

Commit b089bc2

Browse files
committed
fix: error when trying to remove node info box
1 parent 397fa78 commit b089bc2

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/LiveDevelopment/BrowserScripts/RemoteFunctions.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -732,7 +732,7 @@ function RemoteFunctions(config) {
732732
},
733733

734734
remove: function() {
735-
if (this.body && this.body.parentNode) {
735+
if (this.body && this.body.parentNode && this.body.parentNode === window.document.body) {
736736
window.document.body.removeChild(this.body);
737737
this.body = null;
738738
}
@@ -896,7 +896,7 @@ function RemoteFunctions(config) {
896896
},
897897

898898
remove: function() {
899-
if (this.body && this.body.parentNode) {
899+
if (this.body && this.body.parentNode && this.body.parentNode === window.document.body) {
900900
window.document.body.removeChild(this.body);
901901
this.body = null;
902902
}

0 commit comments

Comments
 (0)