bookish-press 0.5.191 → 0.5.192

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.
@@ -3,7 +3,7 @@ export let alt;
3
3
  let loaded;
4
4
  let urlChecked;
5
5
  $: {
6
- if (urlChecked !== url) {
6
+ if (urlChecked !== url && typeof Image !== 'undefined') {
7
7
  urlChecked = url;
8
8
  let image = new Image();
9
9
  image.src = url;
@@ -59,7 +59,7 @@ export default class BookMedia {
59
59
  // Try again in a bit.
60
60
  .catch(() => attempt > 25
61
61
  ? error("Couldn't get the image's thumbnail URL")
62
- : setTimeout(() => this.getThumbnailURL(url, thumbnailRef, error, finished, attempt + 1), 100));
62
+ : setTimeout(() => this.getThumbnailURL(url, thumbnailRef, error, finished, attempt + 1), 200));
63
63
  }
64
64
  upload(file, _, errorHandler, finishedHandler) {
65
65
  if (storage === undefined)
package/package.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "bookish-press",
3
3
  "private": false,
4
- "version": "0.5.191",
4
+ "version": "0.5.192",
5
5
  "type": "module",
6
6
  "description": "A platform for reading and writing readable, accessible, beautiful online books.",
7
7
  "license": "MIT",