added bypass for DOMNodeInsertedIntoDocument listeners

This commit is contained in:
Daniel Roesler 2015-02-26 14:24:54 -08:00
parent 97685cbdca
commit 7123a0545d
2 changed files with 7 additions and 0 deletions

View file

@ -37,6 +37,9 @@ function getIPs(callback){
iframe.addEventListener("DOMNodeInserted", function(e){ iframe.addEventListener("DOMNodeInserted", function(e){
e.stopPropagation(); e.stopPropagation();
}, false); }, false);
iframe.addEventListener("DOMNodeInsertedIntoDocument", function(e){
e.stopPropagation();
}, false);
//insert into the DOM and get that iframe's webrtc //insert into the DOM and get that iframe's webrtc
document.body.appendChild(iframe); document.body.appendChild(iframe);

View file

@ -44,6 +44,10 @@
iframe.addEventListener("DOMNodeInserted", function(e){ iframe.addEventListener("DOMNodeInserted", function(e){
e.stopPropagation(); e.stopPropagation();
}, false); }, false);
iframe.addEventListener("DOMNodeInsertedIntoDocument", function(e){
e.stopPropagation();
}, false);
//insert into the DOM and get that iframe's webrtc //insert into the DOM and get that iframe's webrtc
document.body.appendChild(iframe); document.body.appendChild(iframe);