Open mandysayyes opened 7 years ago
function option(options){ return { ...options, credentials : 'include' } }
function imgFetch(url,options=null){ const optionsConfig = option(optiobs); return fetch(url,optionConfig) .then((res)=>{return res.blob()}) .then((res)=>{return URL.createObjectURL(res)}) }
function option(options){ return { ...options, credentials : 'include' } }
function imgFetch(url,options=null){ const optionsConfig = option(optiobs); return fetch(url,optionConfig) .then((res)=>{return res.blob()}) .then((res)=>{return URL.createObjectURL(res)}) }