diff options
| author | 2021-11-04 22:22:39 +0100 | |
|---|---|---|
| committer | 2021-11-04 22:22:39 +0100 | |
| commit | 387343a0e176062701d98b69fc1c44cff01e2e99 (patch) | |
| tree | b86e85265e0e983c5840461105719c88520b229d /p/scripts | |
| parent | 0d31f89dd8519325ef8ed6efbe77eed4c452f62c (diff) | |
fixed: Shortcuts in "Anonym. Mode" broken (#3897) (#3945)
* fix
* improved delayClick()
* Do not send empty mark as read request
Co-authored-by: Alexandre Alapetite <alexandre@alapetite.fr>
Diffstat (limited to 'p/scripts')
| -rw-r--r-- | p/scripts/main.js | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/p/scripts/main.js b/p/scripts/main.js index 872edcf52..faf8650fd 100644 --- a/p/scripts/main.js +++ b/p/scripts/main.js @@ -201,6 +201,12 @@ const pending_entries = {}; let mark_read_queue = []; function send_mark_read_queue(queue, asRead, callback) { + if (!queue || queue.length === 0) { + if (callback) { + callback(); + } + return; + } const req = new XMLHttpRequest(); req.open('POST', '.?c=entry&a=read' + (asRead ? '' : '&is_read=0'), true); req.responseType = 'json'; |
