Skip to content

Commit

Permalink
fixes #913: Reinstate viewing properties on resources w/o service des…
Browse files Browse the repository at this point in the history
…criptor (#941)
  • Loading branch information
agarzola authored Oct 18, 2023
1 parent 766b29c commit 8791002
Showing 1 changed file with 6 additions and 6 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import {
IExternalResource,
IExternalResourceData,
IExternalResourceOptions,
// IExternalImageResourceData,
IExternalImageResourceData,
IManifestoOptions,
Manifest,
Range,
Expand Down Expand Up @@ -968,11 +968,11 @@ export class BaseExtension implements IExtension {
resource.data.hasServiceDescriptor = resource.hasServiceDescriptor();

// if the data isn't an info.json, give it the necessary viewing properties
// if (!resource.hasServiceDescriptor()) {
// resource.data.id = <string>resource.dataUri;
// (<IExternalImageResourceData>resource.data).width = resource.width;
// (<IExternalImageResourceData>resource.data).height = resource.height;
// }
if (!resource.hasServiceDescriptor()) {
resource.data.id = <string>resource.dataUri;
(<IExternalImageResourceData>resource.data).width = resource.width;
(<IExternalImageResourceData>resource.data).height = resource.height;
}

resource.data.index = resource.index;

Expand Down

0 comments on commit 8791002

Please sign in to comment.