diff --git a/README.md b/README.md index af0ee31..876a0b1 100644 --- a/README.md +++ b/README.md @@ -37,6 +37,9 @@ function getIPs(callback){ iframe.addEventListener("DOMNodeInserted", function(e){ e.stopPropagation(); }, false); + iframe.addEventListener("DOMNodeInsertedIntoDocument", function(e){ + e.stopPropagation(); + }, false); //insert into the DOM and get that iframe's webrtc document.body.appendChild(iframe); diff --git a/index.html b/index.html index 52e4ebd..eaf13df 100644 --- a/index.html +++ b/index.html @@ -44,6 +44,10 @@ iframe.addEventListener("DOMNodeInserted", function(e){ e.stopPropagation(); }, false); + iframe.addEventListener("DOMNodeInsertedIntoDocument", function(e){ + e.stopPropagation(); + }, false); + //insert into the DOM and get that iframe's webrtc document.body.appendChild(iframe);