Skip to content

Commit f49c10f

Browse files
authored
early return if we do not have a service. (#828)
1 parent 7e90a3a commit f49c10f

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

assets/js/ctct-plugin-admin/settings.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,9 @@ window.ctctsettings = {};
3737
*/
3838
that.bindEvents = () => {
3939
const service = document.querySelector(that.cache.service);
40+
if (null === service) {
41+
return;
42+
}
4043
const recaptcha = document.querySelector(that.cache.recaptcha);
4144
const hcaptcha = document.querySelector(that.cache.hcaptcha);
4245
const turnstile = document.querySelector(that.cache.turnstile);

0 commit comments

Comments
 (0)