parent
a49d5dfad3
commit
8ec201cb0f
|
@ -14,7 +14,7 @@ export function isMobile() {
|
||||||
export function getPreviewUrl(photo: IPhoto, square: boolean, size: number | [number, number] | 'screen') {
|
export function getPreviewUrl(photo: IPhoto, square: boolean, size: number | [number, number] | 'screen') {
|
||||||
// Native preview
|
// Native preview
|
||||||
if (photo.flag & constants.c.FLAG_IS_LOCAL) {
|
if (photo.flag & constants.c.FLAG_IS_LOCAL) {
|
||||||
return nativex.API.IMAGE_PREVIEW(photo.fileid);
|
return API.Q(nativex.API.IMAGE_PREVIEW(photo.fileid), { c: photo.etag });
|
||||||
}
|
}
|
||||||
|
|
||||||
// Screen-appropriate size
|
// Screen-appropriate size
|
||||||
|
|
Loading…
Reference in New Issue