Skip to content

Instantly share code, notes, and snippets.

@yagudaev
Last active January 16, 2022 20:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save yagudaev/dd348c66f9eade163ea11c0c072c0cd3 to your computer and use it in GitHub Desktop.
Save yagudaev/dd348c66f9eade163ea11c0c072c0cd3 to your computer and use it in GitHub Desktop.
Firebase v9 Optimization
diff --git a/node_modules/@firebase/auth/dist/esm2017/index-1679a2b2.js b/node_modules/@firebase/auth/dist/esm2017/index-1679a2b2.js
index f7425cb..ca821f2 100644
--- a/node_modules/@firebase/auth/dist/esm2017/index-1679a2b2.js
+++ b/node_modules/@firebase/auth/dist/esm2017/index-1679a2b2.js
@@ -9055,7 +9055,8 @@ class BrowserPopupRedirectResolver {
}
get _shouldInitProactively() {
// Mobile browsers and Safari need to optimistically initialize
- return _isMobileBrowser() || _isSafari() || _isIOS();
+ // return _isMobileBrowser() || _isSafari() || _isIOS();
+ return false;
}
}
/**
diff --git a/node_modules/@firebase/auth/dist/esm5/index-db6f49fb.js b/node_modules/@firebase/auth/dist/esm5/index-db6f49fb.js
index 149f331..5570540 100644
--- a/node_modules/@firebase/auth/dist/esm5/index-db6f49fb.js
+++ b/node_modules/@firebase/auth/dist/esm5/index-db6f49fb.js
@@ -10782,7 +10782,8 @@ var BrowserPopupRedirectResolver = /** @class */ (function () {
Object.defineProperty(BrowserPopupRedirectResolver.prototype, "_shouldInitProactively", {
get: function () {
// Mobile browsers and Safari need to optimistically initialize
- return _isMobileBrowser() || _isSafari() || _isIOS();
+ // return _isMobileBrowser() || _isSafari() || _isIOS();
+ return false;
},
enumerable: false,
configurable: true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment