You cannot select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
tailchat/client/shared/utils/url-helper.ts

13 lines
344 B
TypeScript

import { getServiceUrl } from '../manager/service';
/**
* url,
* @param originUrl Url
* @returns url
*/
export function parseUrlStr(originUrl: string): string {
return String(originUrl)
.replace('{BACKEND}', getServiceUrl())
.replace('%7BBACKEND%7D', getServiceUrl());
}