JS Error with Popup Form

I’m getting a JS error on my popup form on :

https://www.igneous.io/weekly-demo-dataprotect

The “Watch Now” button should trigger a popup form. The popup works in the preview of the page but not on the page itself. The JS error in the console I’m getting is:

v2.js:4 Uncaught DOMException: Failed to execute ‘removeChild’ on ‘Node’: The node to be removed is not a child of this node.
at HTMLScriptElement.c.onload.c.onreadystatechange (https://www.igneous.io/_hcms/forms/v2.js:4:28180)

I’m hoping someone might have a suggestion on how to fix this error.

Thanks!

Hey @paul5562,

Digging into this, it looks like this is due to this line of javascript code:

location.pathname.replace(/^\//, "") == this.pathname.replace(/^\//, "") && location.hostname == this.hostname

This code can be located on your pages settings:

1. At the top right hand corner > Click the ‘Settings’ icon

2. At the left side panel > Expand ‘Website’ > Click ‘Pages

3. Choose domain ‘www.igneous.io

4. Under the ‘Site footer html’ > On line 61

While I’m not too familiar with the purpose of this piece of javascript function, if it’s not useful, you may want to remove the whole javascript function from line 59-72 and the pop up form will work just fine.

Wendy,

Thank you for pointing this out. That’s some old smooth scrolling js that was left over from the previous site. I removed it and, like you said, the popover forms are working correctly now.

Thank you!