Skip to content
Snippets Groups Projects
utils.js 214 B
export const formatAttachmentUrl = (attachmentUrl, userId, token, server) => (
	encodeURI(attachmentUrl.includes('http') ? attachmentUrl : `${ server }${ attachmentUrl }?rc_uid=${ userId }&rc_token=${ token }`)
);