@shift72/core-template 1.9.21 → 1.9.22

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.
package/CHANGELOG.md CHANGED
@@ -1,6 +1,12 @@
1
1
  # Changelog
2
2
 
3
- ## [Unreleased](https://github.com/shift72/core-template/compare/1.9.21...HEAD)
3
+ ## [Unreleased](https://github.com/shift72/core-template/compare/1.9.22...HEAD)
4
+
5
+ ## [1.9.22](https://github.com/shift72/core-template/compare/1.9.21...1.9.22)
6
+
7
+ ### Fixed
8
+
9
+ - Bug with carousel attempting to pause / play when video not found
4
10
 
5
11
  ## [1.9.21](https://github.com/shift72/core-template/compare/1.9.20...1.9.21)
6
12
 
package/kibble.json CHANGED
@@ -1,7 +1,7 @@
1
1
  {
2
2
  "name": "core-template",
3
3
  "version": "0.0.1",
4
- "siteUrl": "https://tvoddemo.shift72.com",
4
+ "siteUrl": "https://tvoddemo-addons.shift72.com",
5
5
  "builderVersion": "0.17.5",
6
6
  "defaultLanguage": "en",
7
7
  "languages": {
@@ -194,5 +194,5 @@
194
194
  "pageSize": 0
195
195
  }
196
196
  ],
197
- "coreTemplateVersion": "1.9.21"
197
+ "coreTemplateVersion": "1.9.22"
198
198
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@shift72/core-template",
3
- "version": "1.9.21",
3
+ "version": "1.9.22",
4
4
  "description": "Shift72 core template",
5
5
  "license": "MIT",
6
6
  "scripts": {
@@ -502,6 +502,7 @@ function initCarouselVideo(app) {
502
502
 
503
503
  function playVideoSlide(slide) {
504
504
  const video = slide.querySelector('video');
505
+ if (!video) return;
505
506
  let s = video.querySelector('source');
506
507
  if (s.getAttribute('src')) {
507
508
  video.play();
@@ -512,6 +513,7 @@ function playVideoSlide(slide) {
512
513
  }
513
514
  function pauseVideoSlide(slide) {
514
515
  const video = slide.querySelector('video');
516
+ if (!video) return;
515
517
  video.pause();
516
518
  }
517
519