芝麻web文件管理V1.00
编辑当前文件:/home2/sdektunc/.trash/media.1/plg_quickicon_joomlaupdate/js/jupdatecheck.min.js
if(Joomla&&Joomla.getOptions("js-extensions-update")){const e=(e,o)=>{const t=document.getElementById("plg_quickicon_joomlaupdate"),a=[].slice.call(t.querySelectorAll("span.j-links-link"));t&&t.classList.add(e),a.length&&a.forEach((e=>{e.innerHTML=Joomla.sanitizeHtml(o)}))},o=()=>{const o=Joomla.getOptions("js-joomla-update");fetch(o.ajaxUrl,{method:"GET"}).then((t=>{t.json().then((t=>{if(Array.isArray(t))if(0===t.length)e("success",Joomla.Text._("PLG_QUICKICON_JOOMLAUPDATE_UPTODATE"));else{const a=t.shift();a.version!==o.version?e("danger",Joomla.Text._("PLG_QUICKICON_JOOMLAUPDATE_UPDATEFOUND").replace("%s",`
${a.version}
`)):e("success",Joomla.Text._("PLG_QUICKICON_JOOMLAUPDATE_UPTODATE"))}else e("danger",Joomla.Text._("PLG_QUICKICON_JOOMLAUPDATE_ERROR"))})).catch((()=>{e("danger",Joomla.Text._("PLG_QUICKICON_JOOMLAUPDATE_ERROR"))}))})).catch((()=>{e("danger",Joomla.Text._("PLG_QUICKICON_JOOMLAUPDATE_ERROR"))}))};window.addEventListener("load",(()=>{setTimeout(o,300)}))}