-
-
Notifications
You must be signed in to change notification settings - Fork 1.6k
Open
Description
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
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
No labels