Skip to content

Commit 931cd08

Browse files
committed
(feat: JS) solve TypeError Cannot read property of null style
1 parent 7455118 commit 931cd08

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

public/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -292,7 +292,7 @@ async function initializeCamera() {
292292
currentCameraIndex = (currentCameraIndex + 1) % videoDevices.length;
293293
startCamera(videoDevices[currentCameraIndex].deviceId);
294294
});
295-
} else {
295+
} else if (switchCameraButton) {
296296
switchCameraButton.style.display = "none";
297297
}
298298

0 commit comments

Comments
 (0)