Skip to content

Commit

Permalink
Merge pull request #218 from Nuzhy-Deriv/nuzhy/WFLOW-2775-trackjs-issue
Browse files Browse the repository at this point in the history
nuzhy/WFLOW-2775/localstorage trackjs issue
  • Loading branch information
moiz-deriv authored Dec 26, 2024
2 parents 30fd4f8 + 211beac commit 03d35da
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions src/js/footer/helper/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -168,9 +168,10 @@ const getDomainAppID = () => {
};

export const getServerUrl = () => {
if (!!window?.localStorage) {
try {
return localStorage.getItem("config.server_url") || DEFAULT_SERVER_URL;
} else {
} catch (error) {
console.warn("Warning: Error accessing localStorage:", error);
return DEFAULT_SERVER_URL;
}
};
Expand Down

0 comments on commit 03d35da

Please sign in to comment.