aboutsummaryrefslogtreecommitdiffstats
path: root/res
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2021-09-28 22:11:01 +0300
committerRblSb <msrblsb@gmail.com>2021-09-28 22:11:01 +0300
commite043a008063ec72c796409f0f15be5fc6dc8f41d (patch)
tree6560956fe1826e4db50f264da42be2d33e9ed4a0 /res
parent98c1f6fa4ec7537ec979a1ae8d68cb6ec11c3fbf (diff)
Call setPos after items added
Diffstat (limited to 'res')
-rw-r--r--res/client.js6
1 files changed, 3 insertions, 3 deletions
diff --git a/res/client.js b/res/client.js
index 8e36477..529ff48 100644
--- a/res/client.js
+++ b/res/client.js
@@ -2363,14 +2363,14 @@ client_Player.prototype = {
currentUrl = _this.items[_this.pos].url;
}
this.clearItems();
- if(pos != null) {
- this.videoList.setPos(pos);
- }
if(list.length == 0) {
return;
}
var _g = 0;
while(_g < list.length) this.addVideoItem(list[_g++],true);
+ if(pos != null) {
+ this.videoList.setPos(pos);
+ }
var _this = this.videoList;
if(currentUrl != _this.items[_this.pos].url) {
this.setVideo(this.videoList.pos);
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage