diff --git a/README.md b/README.md index 30d37d16..dd440d52 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,6 @@ Website | Blog | Documentation | - FAQ | Support @@ -57,7 +56,7 @@ Radar.initialize('prj_test_pk_...', { /* options */ }); Add the following script in your `html` file ```html - + ``` Then initialize the Radar SDK @@ -74,8 +73,8 @@ To create a map, first initialize the Radar SDK with your publishable key. Then ```html
- - + + @@ -99,8 +98,8 @@ To create an autocomplete input, first initialize the Radar SDK with your publis ```html - - + + @@ -131,8 +130,8 @@ To power [geofencing](https://radar.com/documentation/geofencing/overview) exper ```html - - + + diff --git a/package-lock.json b/package-lock.json index ef345b74..3e6ab9d1 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "radar-sdk-js", - "version": "4.1.2", + "version": "4.1.3", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "radar-sdk-js", - "version": "4.0.0", + "version": "4.1.3", "license": "ISC", "dependencies": { "@types/geojson": "^7946.0.10" diff --git a/package.json b/package.json index fac5c95c..ee77a220 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "radar-sdk-js", - "version": "4.1.2", + "version": "4.1.3", "description": "Web Javascript SDK for Radar, location infrastructure for mobile and web apps.", "homepage": "https://radar.com", "type": "module", diff --git a/src/api/verify.ts b/src/api/verify.ts index 90e12355..46474618 100644 --- a/src/api/verify.ts +++ b/src/api/verify.ts @@ -46,7 +46,7 @@ class VerifyAPI { method: 'GET', path: 'verify', data: body, - host: 'http://localhost:52516', + host: 'https://radar-verify.com:52516', }); const { user, events } = response; diff --git a/src/http.ts b/src/http.ts index c8e77cd9..35b20a80 100644 --- a/src/http.ts +++ b/src/http.ts @@ -132,7 +132,7 @@ class Http { } xhr.onerror = function() { - if (host && host.includes('localhost:52516')) { + if (host && host === 'https://radar-verify.com:52516') { reject(new RadarDesktopAppError()); } else { reject(new RadarServerError()); diff --git a/src/version.ts b/src/version.ts index 4aa5536f..6fc9a302 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export default '4.1.2'; +export default '4.1.3';