@firebase/util 1.11.2 → 1.11.3-canary.3d9291f47

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.
package/dist/index.cjs.js CHANGED
@@ -810,7 +810,7 @@ function updateEmulatorBanner(name, isRunningEmulator) {
810
810
  function setupBannerStyles(bannerEl) {
811
811
  bannerEl.style.display = 'flex';
812
812
  bannerEl.style.background = '#7faaf0';
813
- bannerEl.style.position = 'absolute';
813
+ bannerEl.style.position = 'fixed';
814
814
  bannerEl.style.bottom = '5px';
815
815
  bannerEl.style.left = '5px';
816
816
  bannerEl.style.padding = '.5em';
@@ -1031,6 +1031,14 @@ function isSafari() {
1031
1031
  navigator.userAgent.includes('Safari') &&
1032
1032
  !navigator.userAgent.includes('Chrome'));
1033
1033
  }
1034
+ /** Returns true if we are running in Safari or WebKit */
1035
+ function isSafariOrWebkit() {
1036
+ return (!isNode() &&
1037
+ !!navigator.userAgent &&
1038
+ (navigator.userAgent.includes('Safari') ||
1039
+ navigator.userAgent.includes('WebKit')) &&
1040
+ !navigator.userAgent.includes('Chrome'));
1041
+ }
1034
1042
  /**
1035
1043
  * This method checks if indexedDB is supported by current browser/service worker context
1036
1044
  * @return true if indexedDB is supported by current browser/service worker context
@@ -2338,6 +2346,7 @@ exports.isNode = isNode;
2338
2346
  exports.isNodeSdk = isNodeSdk;
2339
2347
  exports.isReactNative = isReactNative;
2340
2348
  exports.isSafari = isSafari;
2349
+ exports.isSafariOrWebkit = isSafariOrWebkit;
2341
2350
  exports.isUWP = isUWP;
2342
2351
  exports.isValidFormat = isValidFormat;
2343
2352
  exports.isValidTimestamp = isValidTimestamp;