9 lines
292 B
JavaScript
9 lines
292 B
JavaScript
'use strict';
|
|
|
|
const prefixFileUrlWithBackendUrl = (fileURL)=>{
|
|
return !!fileURL && fileURL.startsWith('/') ? `${window.strapi.backendURL}${fileURL}` : fileURL;
|
|
};
|
|
|
|
exports.prefixFileUrlWithBackendUrl = prefixFileUrlWithBackendUrl;
|
|
//# sourceMappingURL=prefixFileUrlWithBackendUrl.js.map
|