Skip to content

Commit

Permalink
Merge branch 'release/2.1.2' into craft-4
Browse files Browse the repository at this point in the history
  • Loading branch information
JodebaDigitalPulse committed Dec 29, 2023
2 parents f31650a + 2593ffe commit e8ac3f1
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 4 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,10 @@ All notable changes to this project will be documented in this file.

The format is based on [Keep a Changelog](http://keepachangelog.com/) and this project adheres to [Semantic Versioning](http://semver.org/).

## 2.1.2 - 2023-12-29
### Updated
- friendly captcha widget script

## 2.1.1 - 2023-08-10
### Updated
- new logo
Expand Down
1 change: 1 addition & 0 deletions src/assets/js/friendlycaptcha.min.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions src/assets/js/friendlycaptcha.module.min.js

Large diffs are not rendered by default.

1 change: 0 additions & 1 deletion src/assets/js/widget.min.js

This file was deleted.

1 change: 0 additions & 1 deletion src/assets/js/widget.module.min.js

This file was deleted.

4 changes: 2 additions & 2 deletions src/services/ValidateService.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,8 +153,8 @@ public function renderWidget(array $attributes = []): Markup
{
$settings = FriendlyCaptcha::$plugin->getSettings();

Craft::$app->view->registerJsFile(Craft::$app->assetManager->getPublishedUrl('@digitalpulsebe/friendlycaptcha/assets/js/widget.module.min.js', true), ['async' => true, 'defer' => true]);
Craft::$app->view->registerJsFile(Craft::$app->assetManager->getPublishedUrl('@digitalpulsebe/friendlycaptcha/assets/js/widget.min.js', true), ['async' => true, 'defer' => true]);
Craft::$app->view->registerJsFile(Craft::$app->assetManager->getPublishedUrl('@digitalpulsebe/friendlycaptcha/assets/js/friendlycaptcha.min.js', true), ['async' => true, 'defer' => true, 'nomodule' => true]);
Craft::$app->view->registerJsFile(Craft::$app->assetManager->getPublishedUrl('@digitalpulsebe/friendlycaptcha/assets/js/friendlycaptcha.module.min.js', true), ['async' => true, 'defer' => true, 'type' => 'module']);

$defaultAttributes = [
'class' => 'frc-captcha',
Expand Down

0 comments on commit e8ac3f1

Please sign in to comment.