Skip to content

Commit

Permalink
fix: fix submitForm function
Browse files Browse the repository at this point in the history
  • Loading branch information
RiccardoM committed Jul 28, 2023
1 parent e49bb5b commit 49113a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion public/creator.html
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
<!-- Add the QR code generator library -->
<script src="https://cdn.jsdelivr.net/npm/qrcode-generator/qrcode.js"></script>

<script src="/scripts/creator.js?v=1.0.2"></script>
<script src="/scripts/creator.js?v=1.0.3"></script>
</head>

<body class="bg-[#FFFFFF] text-[#3B3B3B]">
Expand Down
3 changes: 1 addition & 2 deletions public/scripts/creator.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,8 +201,7 @@ async function handleFormSubmission(event) {
// --- Page setup
// --------------------------------------------------------------------------------------------------------------------

function submitForm(event) {
event.preventDefault();
function submitForm() {
showLoadingIndicator();
setTimeout(handleFormSubmission, 2000);
}

0 comments on commit 49113a0

Please sign in to comment.