Skip to content

Commit b32b8da

Browse files
committed
For top resource table display host derived from url pattern.
1 parent bd37862 commit b32b8da

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

src/exceptions-table/top-exceptions-table.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import tableStyles from "./table-styles.css.ts";
1313
import { getHostFromUrlPattern, renderUrlPattern } from "./utils.ts";
1414

1515
interface TopResource {
16-
urlPattern: string;
16+
host: string;
1717
topLevelSites: Set<string>;
1818
bugIds: Set<string>;
1919
entries: Set<ExceptionListEntry>;
@@ -70,7 +70,7 @@ export class TopExceptionsTable extends LitElement {
7070
let topResource = topResources.get(resourceHost);
7171
if (!topResource) {
7272
topResource = {
73-
urlPattern: resourceHost,
73+
host: resourceHost,
7474
topLevelSites: new Set(),
7575
bugIds: new Set(),
7676
entries: new Set(),
@@ -111,7 +111,7 @@ export class TopExceptionsTable extends LitElement {
111111
(topResource) => html`
112112
<tr>
113113
<td class="compact-col">${topResource.topLevelSites.size}</td>
114-
<td>${renderUrlPattern(topResource.urlPattern)}</td>
114+
<td>${topResource.host}</td>
115115
<td>
116116
<button
117117
@click=${() => this.onDetailClick(Array.from(topResource.entries.values()))}

0 commit comments

Comments
 (0)