Skip to content

Commit

Permalink
Cleaning up
Browse files Browse the repository at this point in the history
  • Loading branch information
daonb committed Aug 28, 2024
1 parent 0b92423 commit d5a5d42
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 2 deletions.
2 changes: 1 addition & 1 deletion src/gate.ts
Original file line number Diff line number Diff line change
Expand Up @@ -636,11 +636,11 @@ export class Gate {
//
// @ts-ignore
// eslint-disable-next-line
const layout = msg.args.payload
const container = this.e.querySelector(".windows-container") as HTMLDivElement
const session = this.session as WebRTCSession
switch (msg.type) {
case "set_payload":
const layout = msg.args["payload"]
this.fitScreen = (container.clientWidth == layout.width) && (container.clientHeight == layout.height)
this.setLayout(layout)
break
Expand Down
1 change: 0 additions & 1 deletion src/peerbook.ts
Original file line number Diff line number Diff line change
Expand Up @@ -324,7 +324,6 @@ export class PeerbookConnection {
case 'connected':
// send a ping to get the uid
this.getUID().then(uid => {
this.notify("🥂 over WebRTC")
if (uid == "TBD") {
terminal7.log("Got TBD as uid")
// TODO: refactor to failure.Unauthorized
Expand Down

0 comments on commit d5a5d42

Please sign in to comment.