Skip to content

Commit

Permalink
Merge pull request #300 from silinternational/fix-load-listener
Browse files Browse the repository at this point in the history
Fix load listener
  • Loading branch information
briskt authored Dec 3, 2024
2 parents 2ace687 + 641a6e0 commit e279824
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
5 changes: 2 additions & 3 deletions modules/material/themes/material/mfa/new-backup-codes.twig
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
if (bowser.msie) {
disablePrint();
disableDownload();
} else if (bowser.msedge) {
disableDownload();
}
}
Expand Down Expand Up @@ -49,7 +47,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 e279824

Please sign in to comment.