filens-preview 0.1.2 → 0.1.4

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.
Binary file
@@ -8,7 +8,7 @@ import { c as rs, a as us } from "./chunks/archive-Drem4a-o.js";
8
8
  import { c as cs, a as ds } from "./chunks/cad-CsU3TiHK.js";
9
9
  import { c as vs, a as ps } from "./chunks/diagram-BxRNHzmO.js";
10
10
  import { c as hs, a as fs } from "./chunks/mindmap-vFlOJSIq.js";
11
- import { c as ms, a as bs } from "./chunks/model3d-BBFXmxkf.js";
11
+ import { c as ms, a as bs } from "./chunks/model3d-DoNu7iyY.js";
12
12
  import { a as gs, b as ys, d as xs, e as ws, R as ks, f as Ss, g as Cs } from "./chunks/panorama-Bw_8HQsv.js";
13
13
  import { c as Ms, a as _s } from "./chunks/docx-Ch1AvEUX.js";
14
14
  import { c as Ds, a as Rs } from "./chunks/iwork-HnghW_EB.js";
@@ -111,7 +111,7 @@ class Yt {
111
111
  p();
112
112
  return;
113
113
  }
114
- if (u === "rendered" && !this.image && !((M = this.host.querySelector("video")) != null && M.videoWidth)) {
114
+ if (u === "rendered" && r.family === "video" && !((M = this.host.querySelector("video")) != null && M.videoWidth)) {
115
115
  p ? p() : (this.releaseChild(), this.fail(new Error("The browser cannot decode this video codec. Use a compatible browser or an optional media converter."), n));
116
116
  return;
117
117
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "filens-preview",
3
- "version": "0.1.2",
3
+ "version": "0.1.4",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "description": "Browser-local Office, iWork, PDF, CAD, 3D, RAW and panorama previews, as split modules or one JavaScript file.",