Skip to content

Commit

Permalink
requestsMonitor: fix "Unexpected constant truthiness on the left-hand…
Browse files Browse the repository at this point in the history
… side"
  • Loading branch information
macbre committed May 28, 2024
1 parent e3e4221 commit 9a734de
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/modules/requestsMonitor/requestsMonitor.js
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ function parseEntryUrl(entry) {
entry.protocol = false;
entry.isBlob = true;
} else {
parsed = new URL(entry.url) || {};
parsed = new URL(entry.url);

entry.protocol = parsed.protocol.replace(":", ""); // e.g. "http:"
entry.domain = parsed.hostname;
Expand Down

0 comments on commit 9a734de

Please sign in to comment.