mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 13:18:27 +02:00
Move User-Agent values to a separate localStorage item
This commit is contained in:
@@ -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();
|
||||
|
Reference in New Issue
Block a user