You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
1 line
390 B
1 line
390 B
|
3 days ago
|
function e(e){let t=String(e||``).trim();if(!t)return``;try{if(/^https?:\/\//i.test(t)){let e=new URL(t);return e.pathname.includes(`/storage/`)?`${window.location.origin}${e.pathname}${e.search}`:t}if(t.startsWith(`/storage/`)||t.startsWith(`/`))return`${window.location.origin}${t}`;let e=t.replace(/^\/+/,``);return`${window.location.origin}/storage/${e}`}catch{return t}}export{e as t};
|