Skip to content

Commit

Permalink
chore: remove log
Browse files Browse the repository at this point in the history
  • Loading branch information
linonetwo committed Feb 3, 2024
1 parent 19680fb commit 572fe50
Showing 1 changed file with 0 additions and 6 deletions.
6 changes: 0 additions & 6 deletions src/scp-foundation-site-director/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,17 +29,13 @@ class ScpFoundationSiteDirectorGameWidget extends GameWidget {
this.connectionObserver = new ConnectionObserver(entries => {
// For each entry, print the connection state as well as the target node to the console
for (const { connected, target } of entries) {
console.log('target:', target);
console.log('connected:', connected);
// connected will be false when it first time created and not appended to parent DOM
if (!connected && this.gameInitialized) {
this.destroy();
this.connectionObserver?.disconnect?.();
}
}
});

// Observe 'someElement' for connectedness
this.connectionObserver.observe(canvasElement);
nextSibling === null ? parent.append(containerElement) : nextSibling.before(containerElement);
this.domNodes.push(containerElement);
Expand All @@ -57,8 +53,6 @@ class ScpFoundationSiteDirectorGameWidget extends GameWidget {
}

destroy(): void {
// DEBUG: console
console.log(`destroy`);
this.wasmContext?.stopGame?.();
this.wasmContext = undefined;
this.gameInitialized = false;
Expand Down

0 comments on commit 572fe50

Please sign in to comment.