|
@@ -273,7 +273,8 @@ function handleAddOnes() {
|
|
function isPreviewSupported(url) {
|
|
function isPreviewSupported(url) {
|
|
const imageExtensions = [
|
|
const imageExtensions = [
|
|
'.jpg', '.jpeg', '.png', '.gif',
|
|
'.jpg', '.jpeg', '.png', '.gif',
|
|
- '.bmp', '.tiff', '.webp', '.svg', '.ico'
|
|
|
|
|
|
+ '.bmp', '.tiff', '.webp', '.svg', '.ico',
|
|
|
|
+ '.doc', '.docx', '.xls', '.xlsx', '.ppt', '.pptx', '.pdf'
|
|
];
|
|
];
|
|
const urlLower = url.toLowerCase();
|
|
const urlLower = url.toLowerCase();
|
|
return imageExtensions.some(ext => urlLower.endsWith(ext));
|
|
return imageExtensions.some(ext => urlLower.endsWith(ext));
|