Use quoted strings for accessing IIIF_PROFILE_VALUES

This commit is contained in:
Lutz Helm
2019-05-06 14:23:12 +02:00
committed by Lutz Helm
parent 64e67ae351
commit 7daba05548

View File

@@ -386,7 +386,7 @@ class IIIFInfo {
const version = this.getImageApiVersion();
const level = this.getComplianceLevelFromProfile(version);
if (level === undefined) {
return IIIF_PROFILE_VALUES.none.none;
return IIIF_PROFILE_VALUES['none']['none'];
}
return IIIF_PROFILE_VALUES[version][level];
}