mirror of
https://github.com/vladmandic/automatic
synced 2026-09-20 01:31:13 +02:00
gallery bypass thumb cache and safer delete ops
Signed-off-by: Vladimir Mandic <mandic00@live.com>
This commit is contained in:
@@ -192,7 +192,8 @@ async function addSeparators() {
|
||||
async function delayFetchThumb(fn) {
|
||||
while (outstanding > 16) await new Promise((resolve) => setTimeout(resolve, 50)); // eslint-disable-line no-promise-executor-return
|
||||
outstanding++;
|
||||
const res = await fetch(`${window.api}/browser/thumb?file=${encodeURI(fn)}`, { priority: 'low' });
|
||||
const ts = Date.now().toString();
|
||||
const res = await fetch(`${window.api}/browser/thumb?file=${encodeURI(fn)}&ts=${ts}`, { priority: 'low' });
|
||||
if (!res.ok) {
|
||||
error(`fetchThumb: ${res.statusText}`);
|
||||
outstanding--;
|
||||
|
||||
Reference in New Issue
Block a user