Skip to content

Commit

Permalink
[pre-commit.ci] auto fixes from pre-commit.com hooks
Browse files Browse the repository at this point in the history
for more information, see https://pre-commit.ci
  • Loading branch information
pre-commit-ci[bot] committed May 8, 2024
1 parent a00facf commit 1a91cb3
Showing 1 changed file with 6 additions and 7 deletions.
13 changes: 6 additions & 7 deletions inspector/fileViewer.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,8 @@ function getBaseUrl() {
protocol === "http:" && !port
? "80"
: protocol === "https:" && !port
? "443"
: port;
? "443"
: port;

return `${protocol}//${host}:${defaultPort}`;
}
Expand Down Expand Up @@ -64,8 +64,8 @@ function viewFile(fileName) {
item.agent && item.agent !== "primary"
? "subroutine"
: item.role
? item.role.toLowerCase().replaceAll(" ", "-")
: "default";
? item.role.toLowerCase().replaceAll(" ", "-")
: "default";
const elementId = "historyItem" + index;
const historyItem = document.createElement("div");
historyItem.className = `history-item ${roleClass} fade-in`;
Expand Down Expand Up @@ -131,9 +131,8 @@ function fetchDirectoryInfo() {
if (data.directory) {
trajectoryDirectory = data.directory; // Store the directory
document.title = `Trajectory Viewer: ${data.directory}`;
document.querySelector(
"h1",
).textContent = `Trajectory Viewer: ${data.directory}`;
document.querySelector("h1").textContent =
`Trajectory Viewer: ${data.directory}`;
}
})
.catch((error) => console.error("Error fetching directory info:", error));
Expand Down

0 comments on commit 1a91cb3

Please sign in to comment.