Skip to content

Commit

Permalink
fix some more lint errors
Browse files Browse the repository at this point in the history
Signed-off-by: Najam Ul Saqib <[email protected]>
  • Loading branch information
njmulsqb committed Jan 2, 2025
1 parent b695eea commit fbfa0e3
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/main/zapHomeFiles/hud/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,11 @@ const utils = (function () {
hostname = hostname.split('?')[0];
hostname = hostname.split('#')[0];

// Remove port if present
hostname = hostname.split(':')[0];
// Remove port if present
hostname = hostname.split(':')[0];

// Split the hostname into parts
const parts = hostname.split('.');
const parts = hostname.split('.');

// If the hostname has more than two parts, return the last two parts as the domain
if (parts.length > 2) {
Expand Down Expand Up @@ -782,6 +782,7 @@ const utils = (function () {
timestampToTimeString
};
}

return {
parseRequestHeader,
parseResponseHeader,
Expand Down

0 comments on commit fbfa0e3

Please sign in to comment.