Skip to content

Commit

Permalink
fix: update hostname
Browse files Browse the repository at this point in the history
  • Loading branch information
Nuzhy-Deriv committed Oct 8, 2024
1 parent c27c35f commit c4e3f30
Showing 1 changed file with 8 additions and 8 deletions.
16 changes: 8 additions & 8 deletions public/scripts/freshchat-temp.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,3 @@
// Append the CRM Tracking Code Dynamically
var script = document.createElement("script");
script.src = "https://uae.fw-cdn.com/40116340/63296.js";
script.setAttribute("chat", "true");
document.body.appendChild(script);

const getJWT = async (hostname, uuid, getTokenForWS, callDerivWS) => {
let extra_fields = {};
if (uuid) {
Expand Down Expand Up @@ -103,7 +97,7 @@ const callDerivWS = async (hostname, params, token) => {

class FreshChat {
tokenForWS = undefined;
hostname = "qa179.deriv.dev";
hostname = "green.derivws.com";
appId = 1;

constructor({ token = null, locale = "en", hideButton = false } = {}) {
Expand Down Expand Up @@ -141,6 +135,12 @@ class FreshChat {
},
},
};

// Append the CRM Tracking Code Dynamically
var script = document.createElement("script");
script.src = "https://uae.fw-cdn.com/40116340/63296.js";
script.setAttribute("chat", "true");
document.body.appendChild(script);
};

getTokenForWS = async () => {
Expand Down Expand Up @@ -196,7 +196,7 @@ window.fcSettings = {
// Signed UUID Hardcoded. Call Customer backend and generate the signed uuid from uuid

let signedUUID = await getJWT(
"qa179.deriv.dev",
"green.derivws.com",
uuid,
() => null,
callDerivWS
Expand Down

0 comments on commit c4e3f30

Please sign in to comment.