mirror of
https://github.com/Snigdha-OS/snigdhaos-status.git
synced 2025-09-20 19:44:59 +02:00
2 lines
595 B
JavaScript
2 lines
595 B
JavaScript
function e(e){return Promise.all(e.map(function(e){return new Promise(function(t,n){var r=new URL(e,import.meta.url),l=document.baseURI;if(!l){var o=document.getElementsByTagName("base");l=o.length?o[0].href:document.URL}var u=(""+r).substring(l.length),a=document.querySelector('link[rel=stylesheet][href="'+u+'"]')||document.querySelector('link[rel=stylesheet][href="'+r+'"]');a||((a=document.createElement("link")).rel="stylesheet",a.href=r,document.head.appendChild(a)),a.sheet?t():(a.addEventListener("load",function(){return t()}),a.addEventListener("error",n))})}))}export{e as default};
|