From 1578925c820e235a48c4447804684e8711af26a7 Mon Sep 17 00:00:00 2001 From: FrantaBOT Date: Sun, 27 Oct 2024 20:47:33 +0100 Subject: [PATCH] Added branch to metadata --- CHANGELOG.md | 4 ++++ src/worker/worker.events.ts | 4 +++- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index ea79fd71..c82df8d2 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,7 @@ +### 3.1.4 + +- Fixed an issue with avatars not loading + ### 3.1.3 - Added option hide shared chat diff --git a/src/worker/worker.events.ts b/src/worker/worker.events.ts index b33eab8e..d325ca50 100644 --- a/src/worker/worker.events.ts +++ b/src/worker/worker.events.ts @@ -16,7 +16,9 @@ export class EventAPI { subscriptions: Record = {}; url = import.meta.env.VITE_APP_API_EVENTS; + branch = import.meta.env.VITE_APP_VERSION_BRANCH; version = import.meta.env.VITE_APP_VERSION; + private socket: WebSocket | null = null; private eventSource: EventSource | null = null; private shouldResume = false; @@ -43,7 +45,7 @@ export class EventAPI { const url = new URL(this.url); - url.searchParams.append("app", "7tv-extension"); + url.searchParams.append("app", `7tv-extension${this.branch ? `-${this.branch}` : ""}`); url.searchParams.append("version", this.version); this.transport = transport;