Skip to content

Commit

Permalink
fix: double close reporting (#50)
Browse files Browse the repository at this point in the history
  • Loading branch information
DSergiu authored Jul 6, 2022
1 parent f609422 commit 1fe089c
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 5 deletions.
4 changes: 4 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# Changelog

# 3.1.1

- Fix double close error reporting

# 3.1.0

- Add `pmd`, `checkstyle`, `spotbugs` tools to build system ([#40](https://github.com/hCaptcha/hcaptcha-android-sdk/issues/40))
Expand Down
4 changes: 2 additions & 2 deletions sdk/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@ android {
// See https://developer.android.com/studio/publish/versioning
// versionCode must be integer and be incremented by one for every new update
// android system uses this to prevent downgrades
versionCode 14
versionCode 15

// version number visible to the user
// should follow semantic versioning (See https://semver.org)
versionName "3.1.0"
versionName "3.1.1"

buildConfigField 'String', 'VERSION_NAME', "\"${defaultConfig.versionName}_${defaultConfig.versionCode}\""

Expand Down
4 changes: 1 addition & 3 deletions sdk/src/main/assets/hcaptcha-form.html
Original file line number Diff line number Diff line change
Expand Up @@ -198,9 +198,7 @@
}

document.body.onclick = function () {
if (window.hcaptcha) {
window.hcaptcha.close();
} else {
if (!window.hcaptcha) {
BridgeObject.onError(30);
}
};
Expand Down

0 comments on commit 1fe089c

Please sign in to comment.