chore: review fixes

This commit is contained in:
Muhsin
2026-02-27 16:02:44 +04:00
parent 80b0326e16
commit adf9213ba1
2 changed files with 4 additions and 3 deletions
@@ -27,7 +27,9 @@ export const useLoadWithRetry = (config = {}) => {
element.onload = onSuccess;
}
element.onerror = () => reject(new Error('Failed to load resource'));
element.src = url;
const cacheBustedUrl = new URL(url);
cacheBustedUrl.searchParams.set('t', Date.now());
element.src = cacheBustedUrl.toString();
});
};