This commit is contained in:
LukasNowy
2019-01-28 09:36:52 +01:00
parent 20bacf4bd7
commit 1579c199c3
2 changed files with 8 additions and 8 deletions

View File

@ -8,6 +8,8 @@ $(document).ready(function() {
}); });
//AJAX //AJAX
// Initialize Firebase // Initialize Firebase
@ -41,6 +43,10 @@ function movePurchases() {
}); });
}).catch((error) => console.error("Get id token client error: ", error));}else{console.log("Check Auth error", user)}}); }).catch((error) => console.error("Get id token client error: ", error));}else{console.log("Check Auth error", user)}});
} }
$(".test").click(function() {
movePurchases();
});
}); });
var loading = false; var loading = false;
@ -87,9 +93,3 @@ function updateProgress(percent) {
} }
} }
$(".test").click(function() {
movePurchases();
})

View File

@ -387,7 +387,7 @@ router.post("/donepurchases", (req, res) => {
.then(async function(decodedToken) { .then(async function(decodedToken) {
uid = decodedToken.uid; uid = decodedToken.uid;
try { try {
res.status(200).send("test"); console.log("test");
} }
catch(err) { catch(err) {