|
@@ -273,7 +273,8 @@ function handleAddOnes() {
|
|
|
function isPreviewSupported(url) {
|
|
|
const imageExtensions = [
|
|
|
'.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();
|
|
|
return imageExtensions.some(ext => urlLower.endsWith(ext));
|