Skip to content

Commit

Permalink
Merge pull request #2120 from Nuzhy-Deriv/nuzhy/trackjs
Browse files Browse the repository at this point in the history
nuzhy/CSIT-1626/trackjs error
  • Loading branch information
prince-deriv authored Nov 1, 2024
2 parents eb35eef + 72abbf7 commit 480c73b
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions public/scripts/freshchat.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
class FreshChat {
hostname = localStorage.getItem("config.server_url") || "blue.derivws.com";
hostname = localStorage.getItem("config.server_url") || "green.derivws.com";
appId = localStorage.getItem("config.app_id") || 16929;

constructor({ token = null, hideButton = false } = {}) {
Expand Down Expand Up @@ -72,7 +72,6 @@ class FreshChat {
const data = await response.json();
return data?.service_token?.freshworks_user_jwt?.token;
} catch (error) {
console.error("Fetch error:", error);
return null;
}
};
Expand Down

0 comments on commit 480c73b

Please sign in to comment.