add check for #div on attributeChangedCallback
This commit is contained in:
Vendored
+1
-1
File diff suppressed because one or more lines are too long
Vendored
+1
-1
File diff suppressed because one or more lines are too long
@@ -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",
|
||||
|
||||
@@ -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",
|
||||
|
||||
Reference in New Issue
Block a user