Skip to content

Commit

Permalink
fix: revert extra endpoint changes
Browse files Browse the repository at this point in the history
  • Loading branch information
KaustubhKumar05 committed May 16, 2024
1 parent 46712ec commit 16bac01
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions packages/hms-video-store/src/sdk/store/Store.ts
Original file line number Diff line number Diff line change
Expand Up @@ -445,13 +445,9 @@ class Store {
});
}

// eslint-disable-next-line complexity
private setEnv() {
const endPoint = this.config?.initEndpoint;
if (!endPoint) {
return;
}
const url = endPoint.split('https://')[1] || endPoint;
const endPoint = this.config?.initEndpoint!;
const url = endPoint.split('https://')[1];
let env: ENV = ENV.PROD;
if (url.startsWith(ENV.PROD)) {
env = ENV.PROD;
Expand Down

0 comments on commit 16bac01

Please sign in to comment.