1
0
Fork 0
mirror of https://github.com/mozilla/pdf.js.git synced 2025-04-25 09:38:06 +02:00

Adjust the (applicable) existing isName callsites to use the new isName(v, name) version of the function

This commit is contained in:
Jonas Jenwald 2016-08-04 15:13:37 +02:00
parent af636aae96
commit 83ce6f0b6d
4 changed files with 13 additions and 17 deletions

View file

@ -1909,7 +1909,7 @@ var CipherTransformFactory = (function CipherTransformFactoryClosure() {
function CipherTransformFactory(dict, fileId, password) {
var filter = dict.get('Filter');
if (!isName(filter) || filter.name !== 'Standard') {
if (!isName(filter, 'Standard')) {
error('unknown encryption method');
}
this.dict = dict;