Skip to content

Commit

Permalink
Fix TypeError: replaceAll is not a function (#25)
Browse files Browse the repository at this point in the history
  • Loading branch information
CAMOBAP authored Aug 28, 2022
1 parent 35e8a8f commit a89f514
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Hcaptcha.js
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ const Hcaptcha = ({
try {
const {major, minor, patch} = ReactNativeVersion.version;
result.push(`rnver_${major}_${minor}_${patch}`);
result.push('sdk_' + hcaptchaPackage.version.replaceAll('.', '_'));
result.push('dep_' + md5(Object.keys(global).join('')));
result.push('sdk_' + hcaptchaPackage.version.toString().replace(/\./g, '_'));
} catch (e) {
console.log(e);
} finally {
Expand Down

0 comments on commit a89f514

Please sign in to comment.