Skip to content

Commit

Permalink
call load functions directly instead of using addEventListener
Browse files Browse the repository at this point in the history
  • Loading branch information
briskt committed Dec 3, 2024
1 parent 2ace687 commit 719481c
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
3 changes: 2 additions & 1 deletion modules/material/themes/material/mfa/new-backup-codes.twig
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,8 @@
window.print();
}
document.querySelector('body').addEventListener('load', disableUnsupportedFeatures);
disableUnsupportedFeatures();
document.getElementById('print').addEventListener('click', function() {
printElement('#code-card');
});
Expand Down
3 changes: 2 additions & 1 deletion modules/material/themes/material/profilereview/review.twig
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,8 @@
node.innerText = `${label} ${date.toLocaleDateString()} ${date.toLocaleTimeString()}`
}
document.querySelector('body').addEventListener('load', prettifyDates)
prettifyDates();
document.getElementById('launch').addEventListener('click', function(e) {
document.getElementsByName('continue').click()
});
Expand Down

0 comments on commit 719481c

Please sign in to comment.