aboutsummaryrefslogtreecommitdiff
path: root/player.mjs
diff options
context:
space:
mode:
Diffstat (limited to 'player.mjs')
-rw-r--r--player.mjs4
1 files changed, 2 insertions, 2 deletions
diff --git a/player.mjs b/player.mjs
index a0e2535..d75e659 100644
--- a/player.mjs
+++ b/player.mjs
@@ -7,7 +7,7 @@ export class Player {
}
toggle() {
this.status = !this.status;
- return this.render();
+ this.print();
}
print() {
let status = this.status ? "active" : "inactive";
@@ -15,7 +15,7 @@ export class Player {
}
render() {
let type = this.status ? "" : 'class="outline secondary"';
- return `<button id=${"player_" + this.id} ${type} onclick='togglePlayer(${this.id})'>${this.name}</button>`;
+ return `<button id=${"regular_" + this.id} ${type}>${this.name}</button>`;
}
}