Resizer: set type explicitly

merge-requests/480/head
Alex Gleason 2021-04-17 20:35:46 -05:00
rodzic 78f9807b22
commit 5cfd8106dd
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 7211D1F99744FBB7
1 zmienionych plików z 1 dodań i 1 usunięć

Wyświetl plik

@ -68,7 +68,7 @@ const processImage = (img, { width, height, orientation, type = 'image/png', nam
context.drawImage(img, 0, 0, width, height);
canvas.toBlob((blob) => {
resolve(new File([blob], name));
resolve(new File([blob], name, { type, lastModified: new Date().getTime() }));
}, type);
});