Skip to content

Commit

Permalink
Block original OSC commands that have a modular alternative
Browse files Browse the repository at this point in the history
  • Loading branch information
Raphiiko committed Jul 27, 2024
1 parent d2b5667 commit 9d5b1ac
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions src-ui/app/services/osc.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,11 @@ export class OscService {
.map((parameter) => `${parameter.type} => ${parameter.value}`)
.join(', ');

const addresses = [];
addresses.push(...this.getAddressAliasesForAvatarContext(address));
if (!addresses.includes(address)) addresses.push(address);
const addresses = [...this.getAddressAliasesForAvatarContext(address)];
if (!addresses.length) addresses.push(address);

for (const oscAddr of addresses) {
debug(`[OSC] Sending {${parametersString}} to ${oscAddr}`);
info(`[OSC] Sending {${parametersString}} to ${oscAddr}`);

await invoke('osc_send_command', {
addr,
Expand Down

0 comments on commit 9d5b1ac

Please sign in to comment.