add check for #div on attributeChangedCallback

This commit is contained in:
Tiago
2025-06-10 12:41:24 +01:00
parent e8b203ee7a
commit b712702853
4 changed files with 5 additions and 4 deletions
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
File diff suppressed because one or more lines are too long
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "@cap.js/widget",
"version": "0.1.15",
"version": "0.1.16",
"description": "Client-side widget for Cap, a lightweight, modern open-source CAPTCHA alternative designed using SHA-256 PoW.",
"keywords": [
"security",
+2 -1
View File
@@ -100,7 +100,8 @@
if (
name === "data-cap-i18n-initial-state" &&
this.#div.querySelector("p")?.innerText
this.#div &&
this.#div?.querySelector("p")?.innerText
) {
this.#div.querySelector("p").innerText = this.getI18nText(
"initial-state",