File tree Expand file tree Collapse file tree 1 file changed +5
-1
lines changed
packages/database/src/realtime Expand file tree Collapse file tree 1 file changed +5
-1
lines changed Original file line number Diff line number Diff line change @@ -548,7 +548,11 @@ export class FirebaseIFrameScriptHolder {
548
548
//We have to actually remove all of the html inside this iframe before removing it from the
549
549
//window, or IE will continue loading and executing the script tags we've already added, which
550
550
//can lead to some errors being thrown. Setting innerHTML seems to be the easiest way to do this.
551
- this . myIFrame . doc . body . innerHTML = '' ;
551
+ // TODO() ^ see if there is another way to clear the iframe contents;; can also look at the closure function
552
+ // look at analytics function that removes the script tag
553
+ // make sure it can't be just removed entirely
554
+ // this.myIFrame.doc.body.innerHTML = '';
555
+ this . myIFrame . doc . write ( '' ) ;
552
556
setTimeout ( ( ) => {
553
557
if ( this . myIFrame !== null ) {
554
558
document . body . removeChild ( this . myIFrame ) ;
You can’t perform that action at this time.
0 commit comments