Fix webm PDF bug
This commit is contained in:
parent
e4c395a7cd
commit
372c54068c
@ -11559,7 +11559,7 @@
|
|||||||
return FileInfo.convertUnit(this.file.sizeInBytes, 'MB');
|
return FileInfo.convertUnit(this.file.sizeInBytes, 'MB');
|
||||||
},
|
},
|
||||||
r: function() {
|
r: function() {
|
||||||
if (this.file.isImage) {
|
if (this.file.isImage || this.file.isVideo) {
|
||||||
return this.file.dimensions;
|
return this.file.dimensions;
|
||||||
} else {
|
} else {
|
||||||
return 'PDF';
|
return 'PDF';
|
||||||
|
|||||||
@ -11575,7 +11575,7 @@
|
|||||||
return FileInfo.convertUnit(this.file.sizeInBytes, 'MB');
|
return FileInfo.convertUnit(this.file.sizeInBytes, 'MB');
|
||||||
},
|
},
|
||||||
r: function() {
|
r: function() {
|
||||||
if (this.file.isImage) {
|
if (this.file.isImage || this.file.isVideo) {
|
||||||
return this.file.dimensions;
|
return this.file.dimensions;
|
||||||
} else {
|
} else {
|
||||||
return 'PDF';
|
return 'PDF';
|
||||||
|
|||||||
@ -47,4 +47,4 @@ FileInfo =
|
|||||||
B: -> FileInfo.convertUnit @file.sizeInBytes, 'B'
|
B: -> FileInfo.convertUnit @file.sizeInBytes, 'B'
|
||||||
K: -> FileInfo.convertUnit @file.sizeInBytes, 'KB'
|
K: -> FileInfo.convertUnit @file.sizeInBytes, 'KB'
|
||||||
M: -> FileInfo.convertUnit @file.sizeInBytes, 'MB'
|
M: -> FileInfo.convertUnit @file.sizeInBytes, 'MB'
|
||||||
r: -> if @file.isImage then @file.dimensions else 'PDF'
|
r: -> if @file.isImage or @file.isVideo then @file.dimensions else 'PDF'
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user