/** * @module helpers/utils */ export const completeUrl = (url: string): string => { if (window.location.protocol === 'file:' && /^\/\//.test(url)) { url = 'https:' + url; } return url; };