From 7123a0545d8ff435c06c97c3330594ca79a169d4 Mon Sep 17 00:00:00 2001 From: Daniel Roesler Date: Thu, 26 Feb 2015 14:24:54 -0800 Subject: [PATCH] added bypass for DOMNodeInsertedIntoDocument listeners --- README.md | 3 +++ index.html | 4 ++++ 2 files changed, 7 insertions(+) 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);