diff --git a/src/hud/index.ts b/src/hud/index.ts index 91f0f72..ecbb9bf 100644 --- a/src/hud/index.ts +++ b/src/hud/index.ts @@ -85,7 +85,7 @@ function onSelectedSatChange (satellite: Record) { function onSatHover (event: any) { const { satId, satX, satY, satellite - } = event; + } = event || {}; if (!satId || satId === -1) { setHtml('#sat-hoverbox', '(none)'); diff --git a/src/viewer/index.ts b/src/viewer/index.ts index 6da5cfc..34ba9eb 100644 --- a/src/viewer/index.ts +++ b/src/viewer/index.ts @@ -244,6 +244,7 @@ class Viewer { document .querySelector(this.config.canvasSelector) ?.appendChild(this.renderer.domElement); + logger.debug(`Using WebGL 2: ${this.renderer.capabilities.isWebGL2}`); this.controls = new OrbitControls(this.camera, this.renderer.domElement); this.controls.rotateSpeed = 0.33;