mirror of
https://github.com/sergeyyarkov/yarkov.tech.git
synced 2026-10-11 10:29:21 +03:00
some fixes
This commit is contained in:
parent
5c5b650982
commit
a4314684f7
@ -20,7 +20,7 @@ import UIString from "../UIString";
|
|||||||
$commentsScript.setAttribute("crossorigin", "anonymous");
|
$commentsScript.setAttribute("crossorigin", "anonymous");
|
||||||
|
|
||||||
if (window.theme) {
|
if (window.theme) {
|
||||||
$commentsScript.setAttribute("theme", theme === "dark" ? "dark-blue" : "github-light");
|
$commentsScript.setAttribute("theme", window.theme === "dark" ? "dark-blue" : "github-light");
|
||||||
} else {
|
} else {
|
||||||
$commentsScript.setAttribute("theme", "github-light");
|
$commentsScript.setAttribute("theme", "github-light");
|
||||||
}
|
}
|
||||||
|
|||||||
@ -84,6 +84,7 @@ const t = useTranslation(Astro);
|
|||||||
const views = await response.text();
|
const views = await response.text();
|
||||||
const $views = document.getElementById("views");
|
const $views = document.getElementById("views");
|
||||||
|
|
||||||
|
if (isNaN(parseInt(views, 10))) return;
|
||||||
if ($views) $views.textContent = views;
|
if ($views) $views.textContent = views;
|
||||||
})();
|
})();
|
||||||
</script>
|
</script>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user