Skip to content

Commit

Permalink
Clean up dead code in demo
Browse files Browse the repository at this point in the history
  • Loading branch information
cacheflowe committed Jan 27, 2024
1 parent bf0b488 commit 2d0c51c
Showing 1 changed file with 0 additions and 20 deletions.
20 changes: 0 additions & 20 deletions demo/demo-webrtc-group-game.js
Original file line number Diff line number Diff line change
Expand Up @@ -173,26 +173,6 @@ class WebRtcGroupGameDemo extends DemoBase {
<qr-code>Waiting for PeerJS connection...</qr-code>
</div>
`;

// // create container for QR code to update
// this.qrContainer = this.el.querySelector("qr-code");
// // kill connections button
// this.closeButton = this.el.querySelector("#close-connections");
// this.closeButton.addEventListener("click", () => {
// this.kiosk.closeAllConnections();
// this.qrId = new ShortUniqueId()(); // append handshake ID to querystring - uses ShortUniqueId module
// this.kiosk.buildQrCode(`&qrId=${this.qrId}`);
// });
// // start game button
// this.startButton = this.el.querySelector("#game-start");
// this.startButton.addEventListener("click", () => {
// this.kiosk.broadcastJSON({ cmd: "gameStart" });
// });
// // end game button
// this.endButton = this.el.querySelector("#game-end");
// this.endButton.addEventListener("click", () => {
// this.kiosk.broadcastJSON({ cmd: "gameEnd" });
// });
}

buildClient(offer) {
Expand Down

0 comments on commit 2d0c51c

Please sign in to comment.