Skip to content

Commit

Permalink
Fix crash when consecutive underscores are used in camera name
Browse files Browse the repository at this point in the history
  • Loading branch information
hawkeye217 committed Nov 29, 2024
1 parent 2207a91 commit 32db39f
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions web/src/pages/Live.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -62,6 +62,7 @@ function Live() {
if (selectedCameraName) {
const capitalized = selectedCameraName
.split("_")
.filter((text) => text)
.map((text) => text[0].toUpperCase() + text.substring(1));
document.title = `${capitalized.join(" ")} - Live - Frigate`;
} else if (cameraGroup && cameraGroup != "default") {
Expand Down

0 comments on commit 32db39f

Please sign in to comment.