Commit 94b21e06 authored by sajolida's avatar sajolida
Browse files

Factorize and make easier to debug

parent 29febee8
......@@ -11,15 +11,12 @@ document.addEventListener("DOMContentLoaded", function() {
}
else if (event.data.action === "verification-failed") {
showVerificationResult("failed");
hitCounter("failed");
}
else if (event.data.action === "verification-failed-again") {
showVerificationResult("failed-again");
hitCounter("failed-again");
}
else if (event.data.action === "verification-success") {
showVerificationResult("successful");
hitCounter("successful");
}
else if (event.data.action === "progress") {
showVerificationProgress(event.data.percentage);
......@@ -221,6 +218,7 @@ document.addEventListener("DOMContentLoaded", function() {
showVerifyDownload();
hide(document.getElementById("verify-download-wrapper"));
resetVerificationResult();
hitCounter(result);
if (result === "successful") {
show(document.getElementById("verification-successful"));
opaque(document.getElementById("step-continue-direct"));
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment