@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.
@@ -5,7 +5,7 @@ import { stringify, jsonEval, contains, assert, isNodeSdk, stringToByteArray, Sh
5
5
  import { Logger, LogLevel } from '@firebase/logger';
6
6
 
7
7
  var name = "@firebase/database";
8
- var version = "0.14.0";
8
+ var version = "0.14.1";
9
9
 
10
10
  /**
11
11
  * @license
@@ -1647,8 +1647,8 @@ var FirebaseIFrameScriptHolder = /** @class */ (function () {
1647
1647
  if (this.myIFrame) {
1648
1648
  //We have to actually remove all of the html inside this iframe before removing it from the
1649
1649
  //window, or IE will continue loading and executing the script tags we've already added, which
1650
- //can lead to some errors being thrown. Setting innerHTML seems to be the easiest way to do this.
1651
- this.myIFrame.doc.body.innerHTML = '';
1650
+ //can lead to some errors being thrown. Setting textContent seems to be the safest way to do this.
1651
+ this.myIFrame.doc.body.textContent = '';
1652
1652
  setTimeout(function () {
1653
1653
  if (_this.myIFrame !== null) {
1654
1654
  document.body.removeChild(_this.myIFrame);
@@ -14090,9 +14090,11 @@ function getDatabase(app, url) {
14090
14090
  var db = _getProvider(app, 'database').getImmediate({
14091
14091
  identifier: url
14092
14092
  });
14093
- var emulator = getDefaultEmulatorHostnameAndPort('database');
14094
- if (emulator) {
14095
- connectDatabaseEmulator.apply(void 0, __spreadArray([db], __read(emulator), false));
14093
+ if (!db._instanceStarted) {
14094
+ var emulator = getDefaultEmulatorHostnameAndPort('database');
14095
+ if (emulator) {
14096
+ connectDatabaseEmulator.apply(void 0, __spreadArray([db], __read(emulator), false));
14097
+ }
14096
14098
  }
14097
14099
  return db;
14098
14100
  }