aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Player.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2025-04-09 23:36:52 +0300
committerRblSb <msrblsb@gmail.com>2025-04-09 23:36:52 +0300
commit7cc0b485f2eed746ff638e14e137eabaebaf9312 (patch)
treee945ebe3215a813aaff36f124598cced1a850f9c /src/client/Player.hx
parent71160f8c35da6d40bad52cfecd7152c539dd85c6 (diff)
Trim spaces in message
Diffstat (limited to 'src/client/Player.hx')
-rw-r--r--src/client/Player.hx4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/Player.hx b/src/client/Player.hx
index cafb572..7fc021d 100644
--- a/src/client/Player.hx
+++ b/src/client/Player.hx
@@ -55,7 +55,7 @@ class Player {
initItemButtons();
final resizeObserver = Utils.createResizeObserver(entries -> {
- if (isLoaded) return;
+ if (isLoaded || videoList.length == 0) return;
Buttons.onViewportResize();
});
if (resizeObserver != null) {
@@ -63,7 +63,7 @@ class Player {
} else {
final timer = new Timer(50);
timer.run = () -> {
- if (isLoaded) return;
+ if (isLoaded || videoList.length == 0) return;
Buttons.onViewportResize();
}
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage