@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.
@@ -1250,7 +1250,7 @@ WebSocketConnection.responsesRequiredToBeHealthy = 2;
1250
1250
  WebSocketConnection.healthyTimeout = 30000;
1251
1251
 
1252
1252
  const name = "@firebase/database";
1253
- const version = "0.14.0";
1253
+ const version = "0.14.1";
1254
1254
 
1255
1255
  /**
1256
1256
  * @license
@@ -1932,8 +1932,8 @@ class FirebaseIFrameScriptHolder {
1932
1932
  if (this.myIFrame) {
1933
1933
  //We have to actually remove all of the html inside this iframe before removing it from the
1934
1934
  //window, or IE will continue loading and executing the script tags we've already added, which
1935
- //can lead to some errors being thrown. Setting innerHTML seems to be the easiest way to do this.
1936
- this.myIFrame.doc.body.innerHTML = '';
1935
+ //can lead to some errors being thrown. Setting textContent seems to be the safest way to do this.
1936
+ this.myIFrame.doc.body.textContent = '';
1937
1937
  setTimeout(() => {
1938
1938
  if (this.myIFrame !== null) {
1939
1939
  document.body.removeChild(this.myIFrame);
@@ -13621,9 +13621,11 @@ function getDatabase(app = getApp(), url) {
13621
13621
  const db = _getProvider(app, 'database').getImmediate({
13622
13622
  identifier: url
13623
13623
  });
13624
- const emulator = getDefaultEmulatorHostnameAndPort('database');
13625
- if (emulator) {
13626
- connectDatabaseEmulator(db, ...emulator);
13624
+ if (!db._instanceStarted) {
13625
+ const emulator = getDefaultEmulatorHostnameAndPort('database');
13626
+ if (emulator) {
13627
+ connectDatabaseEmulator(db, ...emulator);
13628
+ }
13627
13629
  }
13628
13630
  return db;
13629
13631
  }