whisper.cat/weboasis/todo/scripts/AppIcon.min.js
2023-10-05 23:28:32 +11:00

1 line
427 B
JavaScript

window.VT=window.VT||{},VT.AppIcon=function(a){if(!(0<a.children.length)){var b=a.dataset.id,c=VT.AppIcon.cache[b];if(!c){var d=VT.AppIcon.baseUrl+b+".svg";c=VT.AppIcon.cache[b]=fetch(d).then(function(a){return a.text()})}c.then(function(b){a.innerHTML=a.classList.contains("-double")?b+b:b})}},VT.AppIcon.baseUrl="https://rawcdn.githack.com/primer/octicons/ff7f6eee63fa2f2d24d02e3aa76a87db48e4b6f6/icons/",VT.AppIcon.cache={};