itube-modern-player 0.7.0 → 0.7.1

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/core.js CHANGED
@@ -1652,7 +1652,7 @@ class Ft {
1652
1652
  }
1653
1653
  }, { signal: this.abort.signal }), this.pauseScreen.root.addEventListener("click", (b) => {
1654
1654
  this.pauseScreen.hasCustom || b.target === this.pauseScreen.root && this.togglePlay();
1655
- }, { signal: this.abort.signal }), this.sources.length > 0 && this.loadItem(x(this.playlistOptions.startIndex, 0, this.sources.length - 1), !!e.autoplay), queueMicrotask(() => {
1655
+ }, { signal: this.abort.signal }), this.sources.length > 0 && this.loadItem(x(this.playlistOptions.startIndex, 0, this.sources.length - 1), !!(e.playOnInit ?? e.autoplay)), queueMicrotask(() => {
1656
1656
  this.destroyed || this.emitter.emit("ready", { player: this });
1657
1657
  });
1658
1658
  }