@knaw-huc/osd-iiif-viewer 0.3.0 → 0.3.1

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/dist/index.js +2 -1
  2. package/package.json +1 -1
package/dist/index.js CHANGED
@@ -325,7 +325,8 @@ function useViewerControls(fullscreenRef) {
325
325
  };
326
326
  }
327
327
  function findThumbnail(vault, canvas, height = 120) {
328
- return getImageServiceId(vault, canvas) ? `/full/,${height}/0/default.jpg` : null;
328
+ const id = getImageServiceId(vault, canvas);
329
+ return id ? `${id}/full/,${height}/0/default.jpg` : null;
329
330
  }
330
331
  export {
331
332
  Overlay,
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@knaw-huc/osd-iiif-viewer",
3
- "version": "0.3.0",
3
+ "version": "0.3.1",
4
4
  "repository": {
5
5
  "type": "git",
6
6
  "url": "https://github.com/knaw-huc/osd-iiif-viewer.git"