fix(ui/thumbnail): fix thumbnail generation in release
- reference to /vendors/ must be absolute path (the bundle isn't the same path as the current library doing the lazy loading)
This commit is contained in:
@@ -517,6 +517,7 @@ export class ResourceListComponent {
|
||||
const thumb = /** @type {HTMLImageElement | null} */ (el.querySelector('.file-thumb'));
|
||||
if (thumb) {
|
||||
thumb.addEventListener('error', () => {
|
||||
console.log(`no thumbnail for ${file.id} (${file.name}), request thumbnail generation from client side`);
|
||||
thumb.classList.add('hidden');
|
||||
thumbnail?.queueGenerate(file, (dataUrl) => {
|
||||
thumb.src = dataUrl;
|
||||
|
||||
Reference in New Issue
Block a user