Errors fixed, OCR UI fixed

This commit is contained in:
LukasNowy
2019-04-07 23:12:57 +02:00
parent d94d1175db
commit aeca9412bf
3 changed files with 34 additions and 58 deletions

View File

@ -92,6 +92,18 @@ $(document).ready(function () {
});
});
$(document).on("click", ".ble", function () {
firebase.auth().onAuthStateChanged(function (user) {
if (user) {
firebase.auth().currentUser.getIdToken( /* forceRefresh */ true).then(function (idtoken) {
window.location.href = "/dash/" + idtoken
}).catch((error) => console.error("Get id token client error: ", error));
} else {
console.log("Check Auth error", user)
}
});
});
function analyzeUploaded() {
$("#modalEND").modal("open");