mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-11-12 22:26:18 +00:00
bugfix
This commit is contained in:
parent
c591c84c75
commit
dc80127dee
@ -32,7 +32,9 @@ var uiConfig = {
|
||||
// tosUrl and privacyPolicyUrl accept either url string or a callback
|
||||
// function.
|
||||
// Terms of service url/callback.
|
||||
tosUrl: function(){alert("this is a test app. don't use it");},
|
||||
tosUrl: function() {
|
||||
alert("this is a test app. don't use it");
|
||||
},
|
||||
// Privacy policy url/callback.
|
||||
privacyPolicyUrl: function() {
|
||||
alert("we will steal all of the data");
|
||||
@ -85,11 +87,13 @@ var deleteAccount = function() {
|
||||
}
|
||||
}
|
||||
};
|
||||
|
||||
function signout() {
|
||||
var user = firebase.auth().currentUser;
|
||||
firebase.auth().signOut()
|
||||
handleSignedOutUser()
|
||||
}
|
||||
|
||||
function loadupdpi() {
|
||||
if (firebase.auth().currentUser != null) {
|
||||
document.getElementById('profileupd').style.display = 'block';
|
||||
@ -100,6 +104,7 @@ function loadupdpi(){
|
||||
handleSignedOutUser();
|
||||
}
|
||||
}
|
||||
|
||||
function upProfileInfo() {
|
||||
if (firebase.auth().currentUser != null) {
|
||||
if (document.getElementById('newDN').value != '') {
|
||||
@ -160,7 +165,8 @@ function upProfileInfo() {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
handleSignedInUser();}
|
||||
handleSignedInUser();
|
||||
}
|
||||
}
|
||||
}).catch(function(error) {
|
||||
if (error.code == 'auth/requires-recent-login') {
|
||||
@ -230,7 +236,9 @@ function upProfileInfo() {
|
||||
}
|
||||
});
|
||||
} else {
|
||||
handleSignedInUser();}
|
||||
handleSignedInUser();
|
||||
}
|
||||
}
|
||||
}
|
||||
}else {
|
||||
setTimeout(function() {
|
||||
|
Loading…
Reference in New Issue
Block a user