Skip to content

Commit

Permalink
Object.getPrototypeOf(this).constructor.name -> this.constructor.name
Browse files Browse the repository at this point in the history
  • Loading branch information
KyleBoyer committed Jul 24, 2024
1 parent 526447c commit a41e356
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/accessory/base.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ export class BaseBlaQAccessory implements BaseBlaQAccessoryInterface {
}

protected getSelfClassName() {
return Object.getPrototypeOf(this).constructor.name;
return this.constructor.name;
}

protected getOrAddService(service: WithUUID<typeof Service> | Service): Service{
Expand Down

0 comments on commit a41e356

Please sign in to comment.