From 5ea0b0d7391dfd1aea4244079a499a20a584386a Mon Sep 17 00:00:00 2001 From: Dermot Duffy Date: Sun, 12 Jun 2022 08:48:52 -0700 Subject: [PATCH] Add browser to diagnostics. --- src/card.ts | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/card.ts b/src/card.ts index abca3544..aa5472b0 100644 --- a/src/card.ts +++ b/src/card.ts @@ -1368,6 +1368,8 @@ export class FrigateCard extends LitElement { context: { ha_version: this._hass.config.version, card_version: CARD_VERSION, + browser: navigator.userAgent, + date: new Date(), frigate_version: Object.fromEntries(frigateVersionMap), lang: getLanguage(), ...(this._rawConfig && { config: this._rawConfig }), @@ -1643,7 +1645,7 @@ export class FrigateCard extends LitElement { */ protected _getMergedActions(): Actions { let specificActions: Actions | undefined = undefined; - + if (this._view?.is('live')) { specificActions = this._getConfig().live.actions; } else if (this._view?.isGalleryView()) {