Skip to content

Commit 20a0b8b

Browse files
committed
Update index.ts
1 parent 0081a02 commit 20a0b8b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

demo/src/index.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ window.addEventListener("load", () => {
5757
renderer.debug.checkShaderErrors = (window.location.hostname === "localhost");
5858
renderer.setClearColor(0x000000, 0);
5959

60-
const container = document.querySelector(".viewport") as HTMLElement;
60+
const container = document.querySelector(".viewport")!;
6161
container.append(renderer.domElement);
6262

6363
// Scene
@@ -165,7 +165,7 @@ window.addEventListener("load", () => {
165165

166166
// Settings
167167

168-
const pane = new Pane({ container: container.querySelector(".tp") as HTMLElement });
168+
const pane = new Pane({ container: container.querySelector<HTMLElement>(".tp")! });
169169

170170
octreeRaycaster.registerOptions(pane);
171171
frustumCuller.registerOptions(pane);

0 commit comments

Comments
 (0)