6 lines
131 B
JavaScript
6 lines
131 B
JavaScript
|
// prefix helper
|
||
|
const prefixUrl = (url, publicUrl) =>
|
||
|
url.startsWith('data:') ? url : publicUrl + url
|
||
|
|
||
|
export { prefixUrl }
|