diff options
| author | RblSb <msrblsb@gmail.com> | 2025-01-25 15:32:55 +0300 |
|---|---|---|
| committer | RblSb <msrblsb@gmail.com> | 2025-01-25 22:52:14 +0300 |
| commit | c7518e58788c17ad2ca8340ab5c7633489aa9518 (patch) | |
| tree | 79b283db70952fef4d9d930cb1dab4a554a377d1 /src/client/Utils.hx | |
| parent | 6ead98595d71afba9d11d3300756b46f18fd6bda (diff) | |
Add experimental unpauseWithoutLeader option
Also extended requestLeaderOnPause, so you can unpause when someone else is a leader by video click with this one. Only works for raw videos and doesn't work in FF, so there is new unsafe option that can break everything with enough clients.
There is also leader button hints when you touch player as non-leader for easier ux.
Diffstat (limited to 'src/client/Utils.hx')
| -rw-r--r-- | src/client/Utils.hx | 5 |
1 files changed, 0 insertions, 5 deletions
diff --git a/src/client/Utils.hx b/src/client/Utils.hx index 717d64f..4d85697 100644 --- a/src/client/Utils.hx +++ b/src/client/Utils.hx @@ -54,11 +54,6 @@ class Utils { + Std.parseFloat(style.marginBottom)); } - public static function prepend(parent:Element, child:Element):Void { - if (parent.firstChild == null) parent.appendChild(child); - else parent.insertBefore(child, parent.firstChild); - } - public static function insertAtIndex(parent:Element, child:Element, i:Int) { if (i >= parent.children.length) parent.appendChild(child); else parent.insertBefore(child, parent.children[i]); |
