@hopecloud/jetstream-player 1.0.21 → 1.0.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.
@@ -17,7 +17,6 @@ export class IFramePiPPlugin {
17
17
  throw new Error('Selector of iframe not found');
18
18
  }
19
19
  this.observer = new IntersectionObserver(([{ isIntersecting }]) => {
20
- console.log('isIntersecting', isIntersecting);
21
20
  if (!isIntersecting) {
22
21
  const height = parent.getBoundingClientRect().height;
23
22
  parent.style.height = `${height}px`;
@@ -32,7 +31,7 @@ export class IFramePiPPlugin {
32
31
  rootMargin: '0px',
33
32
  threshold: 0.1,
34
33
  });
35
- this.observer.observe(this.iframe);
34
+ this.observer.observe(parent);
36
35
  }
37
36
  destory() {
38
37
  if (this.observer) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hopecloud/jetstream-player",
3
- "version": "1.0.21",
3
+ "version": "1.0.22",
4
4
  "description": "JetStream Embed Player API",
5
5
  "type": "module",
6
6
  "author": {