diff --git a/CHANGELOG.md b/CHANGELOG.md index bf284c8..892f85b 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,9 @@ +### 0.14.9 (2025-01-02) + +_Fixed:_ + +- Automatic setting of source dimensions based on source type. + ### 0.14.8 (2024-12-24) _Fixed:_ diff --git a/dist/index.cjs b/dist/index.cjs index 817ae7b..0c6af5c 100644 --- a/dist/index.cjs +++ b/dist/index.cjs @@ -3509,8 +3509,8 @@ class Kampos { media = source; } - const isVideo = typeof media === 'HTMLVideoElement'; - const isCanvas = typeof media === 'HTMLCanvasElement'; + const isVideo = media instanceof HTMLVideoElement; + const isCanvas = media instanceof HTMLCanvasElement; if (width && height) { this.dimensions = { width, height }; diff --git a/docs/index.html b/docs/index.html index b22c744..0e65879 100644 --- a/docs/index.html +++ b/docs/index.html @@ -2,7 +2,7 @@ - kampos 0.14.6 | Documentation + kampos 0.14.8 | Documentation @@ -15,7 +15,7 @@

kampos

-
0.14.6
+
0.14.8