Update downloader.js
This commit is contained in:
@@ -156,7 +156,7 @@
|
|||||||
|
|
||||||
// Capture analytics
|
// Capture analytics
|
||||||
const pageCount = file && file.type === 'application/pdf' ? await getPDFPageCount(file) : null;
|
const pageCount = file && file.type === 'application/pdf' ? await getPDFPageCount(file) : null;
|
||||||
|
if(analyticsEnabled) {
|
||||||
posthog.capture('file_processing', {
|
posthog.capture('file_processing', {
|
||||||
success: success,
|
success: success,
|
||||||
file_type: file ? file.type || 'unknown' : 'unknown',
|
file_type: file ? file.type || 'unknown' : 'unknown',
|
||||||
@@ -167,6 +167,7 @@
|
|||||||
});
|
});
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
|
||||||
function getFilenameFromContentDisposition(contentDisposition) {
|
function getFilenameFromContentDisposition(contentDisposition) {
|
||||||
let filename;
|
let filename;
|
||||||
|
|||||||
Reference in New Issue
Block a user