Skip to content

Commit

Permalink
fix(developer): add back valve internal on beta
Browse files Browse the repository at this point in the history
look i was tired when writing yesterday's fix okay
  • Loading branch information
AAGaming00 committed Dec 14, 2023
1 parent e21a5d5 commit 3489fd7
Showing 1 changed file with 3 additions and 13 deletions.
16 changes: 3 additions & 13 deletions frontend/src/developer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,19 +24,9 @@ export async function setShowValveInternal(show: boolean) {
) as any
];

if (mobx.observe_) {
// New style, currently broken
logger.log('Valve internal not yet supported on this build.');
// removeSettingsObserver = mobx.observe_(mobx, [(e: any) => {
// console.log("got e", e)
// e.newValue.bIsValveEmail = true;
// }]);
} else if (mobx.observe) {
// Old style
removeSettingsObserver = mobx.observe((e: any) => {
e.newValue.bIsValveEmail = true;
});
}
removeSettingsObserver = (mobx.observe_ || mobx.observe).call(mobx, (e: any) => {
e.newValue.bIsValveEmail = true;
});

window.settingsStore.m_Settings.bIsValveEmail = true;
logger.log('Enabled Valve Internal menu');
Expand Down

0 comments on commit 3489fd7

Please sign in to comment.