Fix
This commit is contained in:
parent
1a90ce9d80
commit
58dfa36372
1 changed files with 2 additions and 1 deletions
|
@ -302,7 +302,8 @@ const renderableImageBlob = async (castToken: string, file: EnteFile) => {
|
|||
// Chromecast devices (at least the 2nd gen one) is not powerful enough to
|
||||
// do the WASM HEIC conversion, so for such files use their thumbnails
|
||||
// instead. Nb: the check is using the filename and might not be accurate.
|
||||
const shouldUseThumbnail = isChromecast() && isHEICExtension(fileName);
|
||||
const [, ext] = nameAndExtension(fileName);
|
||||
const shouldUseThumbnail = isChromecast() && isHEICExtension(ext);
|
||||
|
||||
let blob = await downloadFile(castToken, file, shouldUseThumbnail);
|
||||
|
||||
|
|
Loading…
Add table
Reference in a new issue