Skip to content

Commit

Permalink
++hax
Browse files Browse the repository at this point in the history
  • Loading branch information
Tom-Willemsen committed Oct 4, 2024
1 parent 8b4993d commit 56d5fe0
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion app/components/InstrumentPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,11 @@ function InstrumentData({ instrumentName }: { instrumentName: string }) {
process.env.NEXT_PUBLIC_WS_URL || "ws://localhost:8080/pvws/pv";

const instName = instrumentName;
if (document != undefined) {
if (
typeof document !== "undefined" &&
typeof instName !== "undefined" &&
instName !== null
) {
document.title = instName.toUpperCase() + " | IBEX Web Dashboard";
}

Expand Down

0 comments on commit 56d5fe0

Please sign in to comment.