Skip to content

Commit

Permalink
Added branch to metadata
Browse files Browse the repository at this point in the history
  • Loading branch information
FrantaBOT committed Oct 27, 2024
1 parent 3027cdc commit 1578925
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 1 deletion.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
### 3.1.4

- Fixed an issue with avatars not loading

### 3.1.3

- Added option hide shared chat
Expand Down
4 changes: 3 additions & 1 deletion src/worker/worker.events.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,7 +16,9 @@ export class EventAPI {
subscriptions: Record<string, SubscriptionRecord[]> = {};

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;
Expand All @@ -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;
Expand Down

0 comments on commit 1578925

Please sign in to comment.