Skip to content

Commit

Permalink
fix: review comments
Browse files Browse the repository at this point in the history
  • Loading branch information
niloofar-deriv committed Feb 27, 2024
1 parent 53b46af commit 6591876
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions src/utils/url.utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,6 @@ import { LocalStorageConstants, AppIDConstants, URLConstants } from "../constant
import { QueryParameters } from "../constants/url.constants";
import { getActiveLoginid, getAppId, getEnvironmentFromLoginid } from "./websocket.utils";

type DerivStaticURLOptions = {
isDocument?: boolean;
isEU?: boolean;
};

/**
* Defines the structure for account information.
* @typedef {Object} AccountInfo
Expand Down Expand Up @@ -142,6 +137,11 @@ export const getQueryParameter = (key: QueryParameters) => {
*/
export const normalizePath = (path: string) => path.replace(/(^\/|\/$|[^a-zA-Z0-9-_./()#])/g, "");

type DerivStaticURLOptions = {
isDocument?: boolean;
isEU?: boolean;
};

/**
* Generates a static URL for the deriv.com project based on the provided parameters.
* This function is necessary because deriv.com URLs differ from those used in app.deriv.com
Expand Down

0 comments on commit 6591876

Please sign in to comment.