Skip to content

Jam.dev Iframe Issue #3370

@rllngg

Description

@rllngg

So i start using htmx and now we are in testing phase we use jam.dev as our screenshot and video capturer

and i receive issue that our app is crashing / not responding after debuging for 4 hours i notice that the htmx try to clean up the iframe that jam.dev is inserting it got stuck on the while loop (im not sure why?) maybe because iframe cannot be deleted

this function below is causing the crash because the while loop


function swapInnerHTML(target, fragment, settleInfo) {
        const firstChild = target.firstChild
        insertNodesBefore(target, firstChild, fragment, settleInfo)
        if (firstChild) {
            while (firstChild.nextSibling) {
                // .detect if it #jam-iframe skip
                if (firstChild.nextSibling.id === 'jam-iframe') {
                    break
                }
                cleanUpElement(firstChild.nextSibling)
                target.removeChild(firstChild.nextSibling)
            }
            cleanUpElement(firstChild)
            target.removeChild(firstChild)
        }
    }

currently implement this to fix this temporarily

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions