Fix build issue

This commit is contained in:
Jeremy Thomas 2024-01-11 21:17:22 +00:00
parent 2ad384ca41
commit 3c490cf9db
4 changed files with 1911 additions and 2331 deletions

View File

@ -97,6 +97,7 @@ document.addEventListener("DOMContentLoaded", () => {
const $amis = document.getElementById("amis"); const $amis = document.getElementById("amis");
if ($amis) {
fetch("https://jgthms.com/amis/new.json") fetch("https://jgthms.com/amis/new.json")
.then((response) => { .then((response) => {
if (!response.ok) { if (!response.ok) {
@ -120,5 +121,6 @@ document.addEventListener("DOMContentLoaded", () => {
el.appendChild(img); el.appendChild(img);
$amis.appendChild(el); $amis.appendChild(el);
}); });
});
} }
}); });

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@ -86,6 +86,7 @@ document.addEventListener("DOMContentLoaded", function () {
var $amis = document.getElementById("amis"); var $amis = document.getElementById("amis");
if ($amis) {
fetch("https://jgthms.com/amis/new.json").then(function (response) { fetch("https://jgthms.com/amis/new.json").then(function (response) {
if (!response.ok) { if (!response.ok) {
throw new Error("HTTP error! Status: " + response.status); throw new Error("HTTP error! Status: " + response.status);
@ -107,5 +108,6 @@ document.addEventListener("DOMContentLoaded", function () {
el.appendChild(img); el.appendChild(img);
$amis.appendChild(el); $amis.appendChild(el);
}); });
});
} }
}); });