Skip to content

Commit

Permalink
not necessary anymore
Browse files Browse the repository at this point in the history
  • Loading branch information
fballiano committed Mar 9, 2025
1 parent 69754ff commit d987e88
Showing 1 changed file with 0 additions and 12 deletions.
12 changes: 0 additions & 12 deletions public/js/maho-captcha.js
Original file line number Diff line number Diff line change
Expand Up @@ -47,18 +47,6 @@ const MahoCaptcha = {
}),
]);

// Inject Altcha Widget
if (!this.altchaWidget) {
if (typeof config.widgetAttributes !== 'object' || config.widgetAttributes === null) {
throw new Error('widgetAttributes must be specified');
}
this.altchaWidget = document.createElement('altcha-widget');
for (const [ attr, val ] of Object.entries(config.widgetAttributes)) {
this.altchaWidget.setAttribute(attr, val);
}
document.body.appendChild(this.altchaWidget);
}

// Inject Stylesheet
if (!document.querySelector('style[maho-captcha-style]')) {
const styleEl = document.createElement('style');
Expand Down

0 comments on commit d987e88

Please sign in to comment.