mirror of
https://github.com/redphx/better-xcloud.git
synced 2025-08-06 13:18:27 +02:00
Use singleton in GameBar
This commit is contained in:
@@ -20,13 +20,15 @@ export const BxExposed = {
|
||||
return;
|
||||
}
|
||||
|
||||
const gameBar = GameBar.getInstance();
|
||||
|
||||
if (!STATES.isPlaying) {
|
||||
GameBar.disable();
|
||||
gameBar.disable();
|
||||
return;
|
||||
}
|
||||
|
||||
// Toggle Game bar
|
||||
mode !== 'None' ? GameBar.disable() : GameBar.enable();
|
||||
mode !== 'None' ? gameBar.disable() : gameBar.enable();
|
||||
},
|
||||
|
||||
getTitleInfo: () => STATES.currentStream.titleInfo,
|
||||
|
Reference in New Issue
Block a user