Skip to content

Commit 0c4d687

Browse files
committed
Show raw UA string when OS and browser are unknown
1 parent 5bb42ac commit 0c4d687

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

packages/comment-widget/src/commenter-ua-bar.ts

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,11 @@ export class CommenterUABar extends LitElement {
6868
const browser = this.parser.getBrowser();
6969

7070
if (!os.name && !browser.name) {
71-
return html``;
71+
return html`
72+
<div class="inline-flex items-center gap-1 bg-muted-3 rounded-base px-1.5 py-1">
73+
<span class="text-xs text-text-3">${this.ua}</span>
74+
</div>
75+
`;
7276
}
7377

7478
const osIcon = this.getOSIcon(os?.name);

0 commit comments

Comments
 (0)