diff --git a/exmplate/script.js b/exmplate/script.js
index d18e4e8..733eb88 100644
--- a/exmplate/script.js
+++ b/exmplate/script.js
@@ -165,6 +165,11 @@
setError(errorMessage, button);
return
}
+ if (typeof data.captcha_key === 'undefined') {
+ setError('Произошла ошибка!', button);
+ return
+ }
+
shadow.querySelector('button.button-open-window-captcha').remove();
let captchaVerified = document.createElement('div');
captchaVerified.innerHTML = `Ура!!! Проверку прошли!`;