Merge pull request #11466 from Snuffleupagus/telemetry-generator-parsing
[Firefox] Slightly simplify how the generator is determined, when sending telemetry data from the viewer
This commit is contained in:
commit
049a464372
18
web/app.js
18
web/app.js
@ -1365,16 +1365,16 @@ const PDFViewerApplication = {
|
||||
"fpdf",
|
||||
];
|
||||
if (info.Producer) {
|
||||
KNOWN_GENERATORS.some(
|
||||
function(generator, s, i) {
|
||||
if (!generator.includes(s)) {
|
||||
return false;
|
||||
}
|
||||
generatorId = s.replace(/[ .\-]/g, "_");
|
||||
return true;
|
||||
}.bind(null, info.Producer.toLowerCase())
|
||||
);
|
||||
const producer = info.Producer.toLowerCase();
|
||||
KNOWN_GENERATORS.some(function(generator) {
|
||||
if (!producer.includes(generator)) {
|
||||
return false;
|
||||
}
|
||||
generatorId = generator.replace(/[ .\-]/g, "_");
|
||||
return true;
|
||||
});
|
||||
}
|
||||
|
||||
const formType = !info.IsAcroFormPresent
|
||||
? null
|
||||
: info.IsXFAPresent
|
||||
|
Loading…
Reference in New Issue
Block a user