Move User-Agent values to a separate localStorage item

This commit is contained in:
redphx
2024-05-11 09:08:08 +07:00
parent 77f7b647da
commit 9ce906c0b2
4 changed files with 44 additions and 12 deletions

View File

@@ -28,6 +28,7 @@ import { STATES } from "@utils/global";
import { injectStreamMenuButtons } from "@modules/stream/stream-ui";
import { BxLogger } from "@utils/bx-logger";
import { GameBar } from "./modules/game-bar/game-bar";
import { UserAgent } from "./utils/user-agent";
// Handle login page
if (window.location.pathname.includes('/auth/msa')) {
@@ -187,6 +188,8 @@ window.addEventListener(BxEvent.STREAM_STOPPED, e => {
function main() {
UserAgent.init();
// Monkey patches
patchRtcPeerConnection();
patchRtcCodecs();