Extend example extension code with more details

This commit is contained in:
the-djmaze 2023-11-27 01:51:23 +01:00
parent 5e2d9c4fb0
commit 7135af995d
6 changed files with 122 additions and 12 deletions

View file

@ -27,7 +27,7 @@
// https://github.com/the-djmaze/snappymail/issues/349
addEventListener('sm-show-screen', e => {
if ('settings' !== e.detail && rl.settings.get('SetupTwoFactor')) {
if (!e.detail.startsWith('settings') && rl.settings.get('SetupTwoFactor')) {
e.preventDefault();
forceTOTP();
}