apperently window loads too fast for firebase

This commit is contained in:
Jacob Levine 2019-02-09 11:38:57 -06:00
parent 5b922fc10b
commit 447e3e12a3

View File

@ -1,12 +1,4 @@
var config = {
apiKey: "(insert the TitanScout Api Key Here)",
authDomain: "titanscoutandroid.firebaseapp.com",
databaseURL: "https://titanscoutandroid.firebaseio.com",
projectId: "titanscoutandroid",
storageBucket: "titanscoutandroid.appspot.com",
messagingSenderId: "1097635313476"
};
firebase.initializeApp(config);
/* 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";
@ -23,6 +15,15 @@ function closeNav() {
window.onload=function(){ window.onload=function(){
document.getElementById('sideload').style.display = 'block'; document.getElementById('sideload').style.display = 'block';
var config = {
apiKey: "(insert the TitanScout Api Key Here)",
authDomain: "titanscoutandroid.firebaseapp.com",
databaseURL: "https://titanscoutandroid.firebaseio.com",
projectId: "titanscoutandroid",
storageBucket: "titanscoutandroid.appspot.com",
messagingSenderId: "1097635313476"
};
firebase.initializeApp(config);
user= firebase.auth().currentUser user= firebase.auth().currentUser
if (user != null) { if (user != null) {
if (user.displayName != null) { if (user.displayName != null) {