From 7e2bf5eb139621dd7195aa3ab802c84f0b6cc140 Mon Sep 17 00:00:00 2001 From: awsr <43862868+awsr@users.noreply.github.com> Date: Thu, 27 Nov 2025 19:28:40 -0800 Subject: [PATCH] Update JSDoc --- javascript/indexdb.js | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/javascript/indexdb.js b/javascript/indexdb.js index 0adb76b57..e823b88dd 100644 --- a/javascript/indexdb.js +++ b/javascript/indexdb.js @@ -101,6 +101,12 @@ async function idbGetAllKeys(index = null, query = null) { }); } +/** + * Get the number of entries in the IndexedDB thumbnail cache. + * @global + * @param {?string} folder - If specified, get the count for this gallery folder. Otherwise get the total count. + * @returns {Promise} + */ async function idbCount(folder = null) { if (!db) return null; return new Promise((resolve, reject) => { @@ -119,9 +125,11 @@ async function idbCount(folder = null) { } /** + * Cleanup function for IndexedDB thumbnail cache. + * @global * @param {Set} keepSet - Set containing the hashes of the current files in the folder. - * @param {string} folder - Folder name/path - * @param {updateMsgCallback} msgCallback - Callback for updating progress display + * @param {string} folder - Folder name/path. + * @param {updateMsgCallback} msgCallback - Callback for updating the overlay message progress. */ async function idbFolderCleanup(keepSet, folder, msgCallback) { if (!db) return null;