mirror of
https://github.com/titanscouting/tra-analysis.git
synced 2024-12-27 09:59:10 +00:00
apperently window loads too fast for firebase
This commit is contained in:
parent
5b922fc10b
commit
447e3e12a3
@ -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) {
|
||||||
|
Loading…
Reference in New Issue
Block a user