catch site pas dans le json

This commit is contained in:
gablaxy 2023-10-05 09:47:07 +02:00 committed by GitHub
parent da10f323be
commit 76cf0454e0
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -80,6 +80,17 @@ class Webring extends HTMLElement {
<a href="${sites[nextSiteIndex].url}" rel="next noreferrer external">après &gt;</a>
`;
this.shadowRoot
.querySelector("#webring-inner")
.insertAdjacentHTML("afterbegin", content);
})
.catch((error) => {
console.error(error);
const content = `
<h3 id="webring-title">grossomodo</h3>
<p>T'es pas dans le gang bozo</p>
`;
this.shadowRoot
.querySelector("#webring-inner")
.insertAdjacentHTML("afterbegin", content);