mirror of
https://github.com/radio95-rnt/RadioPlayer.git
synced 2026-07-29 15:29:14 +02:00
whoops
This commit is contained in:
+1
-1
@@ -94,7 +94,7 @@ function wsSend(obj) {
|
|||||||
function handleMessage(msg) {
|
function handleMessage(msg) {
|
||||||
if(msg.time && timeOffset != 0) {
|
if(msg.time && timeOffset != 0) {
|
||||||
const now = performance.now() / 1000;
|
const now = performance.now() / 1000;
|
||||||
const lag = now - (msg.time + offset);
|
const lag = now - (msg.time + timeOffset);
|
||||||
document.getElementById("ping-status").textContent = lag * 1000;
|
document.getElementById("ping-status").textContent = lag * 1000;
|
||||||
}
|
}
|
||||||
switch (msg.event) {
|
switch (msg.event) {
|
||||||
|
|||||||
Reference in New Issue
Block a user