Skip to content

Commit

Permalink
Add option to force enable or disable remote raidboss
Browse files Browse the repository at this point in the history
  • Loading branch information
valarnin committed Feb 1, 2025
1 parent e625072 commit 6b98731
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions ui/raidboss/raidboss.ts
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,12 @@ UserConfig.getUserConfigLocation('raidboss', defaultOptions, () => {
options.IsRemoteRaidboss = !isLocal;
}

const forceRemoteRaidboss = params.get('remote');
if (forceRemoteRaidboss !== null) {
options.IsRemoteRaidboss = !!parseInt(forceRemoteRaidboss);
console.log(`Forcing IsRemoteRaidboss=${options.IsRemoteRaidboss} via query parameter`);
}

const playerNameParam = params.get('player');
if (playerNameParam !== null) {
options.PlayerNameOverride = playerNameParam;
Expand Down

0 comments on commit 6b98731

Please sign in to comment.