@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.
@@ -806,7 +806,7 @@ function updateEmulatorBanner(name, isRunningEmulator) {
806
806
  function setupBannerStyles(bannerEl) {
807
807
  bannerEl.style.display = 'flex';
808
808
  bannerEl.style.background = '#7faaf0';
809
- bannerEl.style.position = 'absolute';
809
+ bannerEl.style.position = 'fixed';
810
810
  bannerEl.style.bottom = '5px';
811
811
  bannerEl.style.left = '5px';
812
812
  bannerEl.style.padding = '.5em';
@@ -1027,6 +1027,14 @@ function isSafari() {
1027
1027
  navigator.userAgent.includes('Safari') &&
1028
1028
  !navigator.userAgent.includes('Chrome'));
1029
1029
  }
1030
+ /** Returns true if we are running in Safari or WebKit */
1031
+ function isSafariOrWebkit() {
1032
+ return (!isNode() &&
1033
+ !!navigator.userAgent &&
1034
+ (navigator.userAgent.includes('Safari') ||
1035
+ navigator.userAgent.includes('WebKit')) &&
1036
+ !navigator.userAgent.includes('Chrome'));
1037
+ }
1030
1038
  /**
1031
1039
  * This method checks if indexedDB is supported by current browser/service worker context
1032
1040
  * @return true if indexedDB is supported by current browser/service worker context
@@ -2286,5 +2294,5 @@ function getModularInstance(service) {
2286
2294
  }
2287
2295
  }
2288
2296
 
2289
- export { CONSTANTS, DecodeBase64StringError, Deferred, ErrorFactory, FirebaseError, MAX_VALUE_MILLIS, RANDOM_FACTOR, Sha1, areCookiesEnabled, assert, assertionError, async, base64, base64Decode, base64Encode, base64urlEncodeWithoutPadding, calculateBackoffMillis, contains, createMockUserToken, createSubscribe, decode, deepCopy, deepEqual, deepExtend, errorPrefix, extractQuerystring, getDefaultAppConfig, getDefaultEmulatorHost, getDefaultEmulatorHostnameAndPort, getDefaults, getExperimentalSetting, getGlobal, getModularInstance, getUA, isAdmin, isBrowser, isBrowserExtension, isCloudWorkstation, isCloudflareWorker, isElectron, isEmpty, isIE, isIndexedDBAvailable, isMobileCordova, isNode, isNodeSdk, isReactNative, isSafari, isUWP, isValidFormat, isValidTimestamp, isWebWorker, issuedAtTime, jsonEval, map, ordinal, pingServer, promiseWithTimeout, querystring, querystringDecode, safeGet, stringLength, stringToByteArray, stringify, updateEmulatorBanner, validateArgCount, validateCallback, validateContextObject, validateIndexedDBOpenable, validateNamespace };
2297
+ export { CONSTANTS, DecodeBase64StringError, Deferred, ErrorFactory, FirebaseError, MAX_VALUE_MILLIS, RANDOM_FACTOR, Sha1, areCookiesEnabled, assert, assertionError, async, base64, base64Decode, base64Encode, base64urlEncodeWithoutPadding, calculateBackoffMillis, contains, createMockUserToken, createSubscribe, decode, deepCopy, deepEqual, deepExtend, errorPrefix, extractQuerystring, getDefaultAppConfig, getDefaultEmulatorHost, getDefaultEmulatorHostnameAndPort, getDefaults, getExperimentalSetting, getGlobal, getModularInstance, getUA, isAdmin, isBrowser, isBrowserExtension, isCloudWorkstation, isCloudflareWorker, isElectron, isEmpty, isIE, isIndexedDBAvailable, isMobileCordova, isNode, isNodeSdk, isReactNative, isSafari, isSafariOrWebkit, isUWP, isValidFormat, isValidTimestamp, isWebWorker, issuedAtTime, jsonEval, map, ordinal, pingServer, promiseWithTimeout, querystring, querystringDecode, safeGet, stringLength, stringToByteArray, stringify, updateEmulatorBanner, validateArgCount, validateCallback, validateContextObject, validateIndexedDBOpenable, validateNamespace };
2290
2298
  //# sourceMappingURL=index.esm2017.js.map