ens-usernames/app/ui/utils/url.js

6 lines
131 B
JavaScript

// prefix helper
const prefixUrl = (url, publicUrl) =>
url.startsWith('data:') ? url : publicUrl + url
export { prefixUrl }