Skip to content
This repository was archived by the owner on Apr 4, 2023. It is now read-only.

Commit b3d3bc2

Browse files
Logout breaking on Android when nativescript-fresco plugin is added to app #418
1 parent a726738 commit b3d3bc2

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

firebase.android.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -767,7 +767,7 @@ firebase.logout = function (arg) {
767767
com.google.android.gms.auth.api.Auth.GoogleSignInApi.revokeAccess(firebase._mGoogleApiClient);
768768
}
769769

770-
if (typeof(com.facebook) !== "undefined") {
770+
if (typeof(com.facebook) !== "undefined" && typeof(com.facebook.login) !== "undefined") {
771771
com.facebook.login.LoginManager.getInstance().logOut();
772772
}
773773

0 commit comments

Comments
 (0)