Use quoted strings for accessing IIIF_PROFILE_VALUES
This commit is contained in:
@@ -386,7 +386,7 @@ class IIIFInfo {
|
|||||||
const version = this.getImageApiVersion();
|
const version = this.getImageApiVersion();
|
||||||
const level = this.getComplianceLevelFromProfile(version);
|
const level = this.getComplianceLevelFromProfile(version);
|
||||||
if (level === undefined) {
|
if (level === undefined) {
|
||||||
return IIIF_PROFILE_VALUES.none.none;
|
return IIIF_PROFILE_VALUES['none']['none'];
|
||||||
}
|
}
|
||||||
return IIIF_PROFILE_VALUES[version][level];
|
return IIIF_PROFILE_VALUES[version][level];
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user