From 76cf0454e09f834c9479121cd1567d628d6a4f42 Mon Sep 17 00:00:00 2001 From: gablaxy <32848524+gablaxy@users.noreply.github.com> Date: Thu, 5 Oct 2023 09:47:07 +0200 Subject: [PATCH] catch site pas dans le json --- webring.js | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/webring.js b/webring.js index d2163a8..bd882d5 100644 --- a/webring.js +++ b/webring.js @@ -80,6 +80,17 @@ class Webring extends HTMLElement { après > `; + this.shadowRoot + .querySelector("#webring-inner") + .insertAdjacentHTML("afterbegin", content); + }) + .catch((error) => { + console.error(error); + const content = ` +
T'es pas dans le gang bozo
+ `; + this.shadowRoot .querySelector("#webring-inner") .insertAdjacentHTML("afterbegin", content);