From a5dba428f66b83599ecafe19f1e3acdda82c67fe Mon Sep 17 00:00:00 2001 From: Junior Date: Sun, 21 Sep 2025 15:40:09 -0400 Subject: [PATCH] Move the showKindleMail() call outside the conditional for updating the local variable. Fixes Click to Set not being shown if kindle mail is empty. --- js/books.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/js/books.js b/js/books.js index b80ccef..e0bbfc3 100644 --- a/js/books.js +++ b/js/books.js @@ -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 != "" ) {