Rename States to STATES

This commit is contained in:
redphx
2024-04-24 17:09:39 +07:00
parent fd0f0799ee
commit 06ffcf20f7
17 changed files with 88 additions and 88 deletions

View File

@@ -1,7 +1,7 @@
import { t } from "../translation";
import { BxEvent } from "../bx-event";
import { CE } from "../../utils/html";
import { States } from "../../utils/global";
import { STATES } from "../../utils/global";
enum StreamBadge {
PLAYTIME = 'playtime',
@@ -86,7 +86,7 @@ export class StreamBadges {
} catch(e) {}
}
const stats = await States.currentStream.peerConnection?.getStats()!;
const stats = await STATES.currentStream.peerConnection?.getStats()!;
let totalIn = 0;
let totalOut = 0;
stats.forEach(stat => {