aboutsummaryrefslogtreecommitdiffstats
path: root/src/client/Player.hx
diff options
context:
space:
mode:
authorRblSb <msrblsb@gmail.com>2020-05-09 19:53:42 +0300
committerRblSb <msrblsb@gmail.com>2020-05-09 19:53:42 +0300
commit89063941699b71cbed2a523e978477cdc286f4a4 (patch)
treefe8661c1ba687a8120aafc1c5306f5a6616190af /src/client/Player.hx
parent047400de951a90e51967c0298cf3e8895410a071 (diff)
Blink tab on first video of player
Diffstat (limited to 'src/client/Player.hx')
-rw-r--r--src/client/Player.hx10
1 files changed, 6 insertions, 4 deletions
diff --git a/src/client/Player.hx b/src/client/Player.hx
index 5c283f7..b0b52a7 100644
--- a/src/client/Player.hx
+++ b/src/client/Player.hx
@@ -87,10 +87,12 @@ class Player {
}
function setPlayer(newPlayer:IPlayer):Void {
- if (player != null && player != newPlayer) {
- JsApi.fireVideoRemoveEvents(items[itemPos]);
- player.removeVideo();
- // playerEl.textContent = "";
+ if (player != newPlayer) {
+ if (player != null) {
+ JsApi.fireVideoRemoveEvents(items[itemPos]);
+ player.removeVideo();
+ }
+ main.blinkTabWithTitle("*Video*");
}
player = newPlayer;
}
send patches to the email below
yukais@pinapelz.com
include the subject [PATCH repo_name]
pinapelz.com
homepage