itube-modern-player 0.2.2 → 0.2.3
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/README.md +2 -0
- package/dist/core.cjs +1 -1
- package/dist/core.cjs.map +1 -1
- package/dist/core.js +2 -2
- package/dist/core.js.map +1 -1
- package/dist/itube-modern-player.iife.js +1 -1
- package/dist/itube-modern-player.iife.js.map +1 -1
- package/dist/style.css +1 -1
- package/package.json +1 -1
package/dist/core.js
CHANGED
|
@@ -1162,7 +1162,7 @@ class yt {
|
|
|
1162
1162
|
a.textContent = w(t.duration), n.append(a);
|
|
1163
1163
|
}
|
|
1164
1164
|
i.append(s, n), i.addEventListener("click", () => {
|
|
1165
|
-
this.player.playItem(e);
|
|
1165
|
+
this.player.playItem(e), window.innerWidth <= 767 && this.hide();
|
|
1166
1166
|
}), this.list.append(i);
|
|
1167
1167
|
});
|
|
1168
1168
|
}
|
|
@@ -1201,7 +1201,7 @@ class bt {
|
|
|
1201
1201
|
a.textContent = e.title || w(e.start);
|
|
1202
1202
|
const c = l("div", "imp-playlist__duration");
|
|
1203
1203
|
c.textContent = w(e.start), o.append(a, c), i.append(s, o), i.addEventListener("click", () => {
|
|
1204
|
-
this.player.seek(e.start), this.player.play();
|
|
1204
|
+
this.player.seek(e.start), this.player.play(), window.innerWidth <= 767 && this.hide();
|
|
1205
1205
|
}), this.list.append(i), this.items.push(i);
|
|
1206
1206
|
}
|
|
1207
1207
|
this.syncActive();
|