From a89f5142c828cc29eea1bee1590a05f75a17f67c Mon Sep 17 00:00:00 2001 From: Alex Babrykovich Date: Mon, 29 Aug 2022 01:00:00 +0200 Subject: [PATCH] Fix TypeError: replaceAll is not a function (#25) --- Hcaptcha.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/Hcaptcha.js b/Hcaptcha.js index 9491057..33bda70 100644 --- a/Hcaptcha.js +++ b/Hcaptcha.js @@ -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 {