catch site pas dans le json
This commit is contained in:
parent
da10f323be
commit
76cf0454e0
1 changed files with 11 additions and 0 deletions
11
webring.js
11
webring.js
|
|
@ -80,6 +80,17 @@ class Webring extends HTMLElement {
|
|||
<a href="${sites[nextSiteIndex].url}" rel="next noreferrer external">après ></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);
|
||||
|
|
|
|||
Loading…
Reference in a new issue