Fix webm PDF bug
Conflicts: builds/4chan-X.user.js builds/crx/script.js
This commit is contained in:
parent
12feb7dc9b
commit
337b43591b
@ -11168,7 +11168,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';
|
||||||
|
|||||||
@ -11171,7 +11171,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