Move the showKindleMail() call outside the conditional for updating the local variable. Fixes Click to Set not being shown if kindle mail is empty.

This commit is contained in:
Junior 2025-09-21 15:40:09 -04:00
parent a9dc5f6f65
commit a5dba428f6

View File

@ -78,8 +78,8 @@ function getContents() {
if ( admin ) $("#parsebooks").removeClass("hide");
if ( data.kindlemail != kindlemail ) {
kindlemail = data.kindlemail;
showKindleMail();
}
showKindleMail();
if ( data.bookdir != currentpath ) {
currentpath = data.bookdir;
if ( data.bookdirname != "" ) {