We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c004ba6 commit a122a01Copy full SHA for a122a01
1 file changed
src/targets/browser/constructInspectorWSUri.ts
@@ -29,7 +29,10 @@ export function constructInspectorWSUri(
29
30
// We map keys to functions, so we won't fail with a missing url unless the inspector uri format is actually referencing the url
31
const replacements: { [key: string]: () => string } = {
32
- 'url.hostname': () => getUrl(urlText).hostname,
+ 'url.hostname': () => {
33
+ const hostname = getUrl(urlText).hostname;
34
+ return hostname.endsWith('.localhost') ? 'localhost' : hostname;
35
+ },
36
'url.port': () => getUrl(urlText).port,
37
browserInspectUri: () => encodeURIComponent(browserInspectUri),
38
browserInspectUriPath: () => new URL(browserInspectUri).pathname,
0 commit comments