mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-27 18:09:08 +00:00
adding timeout
This commit is contained in:
parent
447e3e12a3
commit
3da5a0cbd7
@ -1,4 +1,3 @@
|
|||||||
|
|
||||||
/* Set the width of the side navigation to 250px and the left margin of the page content to 250px and add a black background color to body */
|
/* Set the width of the side navigation to 250px and the left margin of the page content to 250px and add a black background color to body */
|
||||||
function openNav() {
|
function openNav() {
|
||||||
document.getElementById("mySidenav").style.width = "250px";
|
document.getElementById("mySidenav").style.width = "250px";
|
||||||
@ -25,6 +24,7 @@ window.onload=function(){
|
|||||||
};
|
};
|
||||||
firebase.initializeApp(config);
|
firebase.initializeApp(config);
|
||||||
user = firebase.auth().currentUser
|
user = firebase.auth().currentUser
|
||||||
|
setTimeout(function() {
|
||||||
if (user != null) {
|
if (user != null) {
|
||||||
if (user.displayName != null) {
|
if (user.displayName != null) {
|
||||||
document.getElementById('status').innerHTML = "You are signed in as: " + user.displayName;
|
document.getElementById('status').innerHTML = "You are signed in as: " + user.displayName;
|
||||||
@ -37,6 +37,6 @@ window.onload=function(){
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
window.location.replace('../');
|
window.location.replace('../');
|
||||||
|
}, 10)
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user