fix: small bugs with GitHub repo cards (fix #242)

This commit is contained in:
saicaca
2024-12-07 18:50:19 +08:00
parent 8cd04d9ceb
commit e44628364b
2 changed files with 2 additions and 2 deletions

View File

@@ -73,7 +73,7 @@ export function GithubCardComponent(properties, children) {
if (data.license?.spdx_id) {
document.getElementById('${cardUuid}-license').innerText = data.license?.spdx_id
} else {
document.getElementById('${cardUuid}-license').classList.add = "no-license"
document.getElementById('${cardUuid}-license').innerText = "no-license"
};
document.getElementById('${cardUuid}-card').classList.remove("fetch-waiting");
console.log("[GITHUB-CARD] Loaded card for ${repo} | ${cardUuid}.")