@firebase/database 0.14.0 → 0.14.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1298,7 +1298,7 @@ var WebSocketConnection = /** @class */ (function () {
1298
1298
  }());
1299
1299
 
1300
1300
  var name = "@firebase/database";
1301
- var version = "0.14.0";
1301
+ var version = "0.14.1";
1302
1302
 
1303
1303
  /**
1304
1304
  * @license
@@ -2010,8 +2010,8 @@ var FirebaseIFrameScriptHolder = /** @class */ (function () {
2010
2010
  if (this.myIFrame) {
2011
2011
  //We have to actually remove all of the html inside this iframe before removing it from the
2012
2012
  //window, or IE will continue loading and executing the script tags we've already added, which
2013
- //can lead to some errors being thrown. Setting innerHTML seems to be the easiest way to do this.
2014
- this.myIFrame.doc.body.innerHTML = '';
2013
+ //can lead to some errors being thrown. Setting textContent seems to be the safest way to do this.
2014
+ this.myIFrame.doc.body.textContent = '';
2015
2015
  setTimeout(function () {
2016
2016
  if (_this.myIFrame !== null) {
2017
2017
  document.body.removeChild(_this.myIFrame);
@@ -14102,9 +14102,11 @@ function getDatabase(app$1, url) {
14102
14102
  var db = app._getProvider(app$1, 'database').getImmediate({
14103
14103
  identifier: url
14104
14104
  });
14105
- var emulator = util.getDefaultEmulatorHostnameAndPort('database');
14106
- if (emulator) {
14107
- connectDatabaseEmulator.apply(void 0, tslib.__spreadArray([db], tslib.__read(emulator), false));
14105
+ if (!db._instanceStarted) {
14106
+ var emulator = util.getDefaultEmulatorHostnameAndPort('database');
14107
+ if (emulator) {
14108
+ connectDatabaseEmulator.apply(void 0, tslib.__spreadArray([db], tslib.__read(emulator), false));
14109
+ }
14108
14110
  }
14109
14111
  return db;
14110
14112
  }