diff --git a/browser/base/content/aboutHome.js b/browser/base/content/aboutHome.js index 4ba3c528d7ae..544e28ebfdef 100644 --- a/browser/base/content/aboutHome.js +++ b/browser/base/content/aboutHome.js @@ -171,7 +171,7 @@ function showSnippets() let relocatedScript = document.createElement("script"); relocatedScript.type = "text/javascript;version=1.8"; relocatedScript.text = elt.text; - snippetsElt.replaceChild(relocatedScript, elt); + elt.parentNode.replaceChild(relocatedScript, elt); }); snippetsElt.hidden = false; } else {