pb-sxp-ui 1.0.97 → 1.0.98

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/dist/index.cjs CHANGED
@@ -13076,7 +13076,8 @@ const VideoWidget$2 = ({ rec, index, height, data, muted, activeIndex, videoPost
13076
13076
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.addEventListener('canplay', handlePlay);
13077
13077
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.addEventListener('waiting', handleWaiting);
13078
13078
  return () => {
13079
- hls.destroy();
13079
+ if (hls)
13080
+ hls === null || hls === void 0 ? void 0 : hls.destroy();
13080
13081
  setIsLoadFinish(false);
13081
13082
  dom2 === null || dom2 === void 0 ? void 0 : dom2.appendChild(dom);
13082
13083
  videoRef === null || videoRef === void 0 ? void 0 : videoRef.removeEventListener('loadedmetadata', handleLoadedmetadata);