diff --git a/README.md b/README.md index 4190945d..be0f03ff 100644 --- a/README.md +++ b/README.md @@ -56,7 +56,7 @@ Radar.initialize('prj_test_pk_...', { /* options */ }); Add the following script in your `html` file ```html - + ``` Then initialize the Radar SDK @@ -73,8 +73,8 @@ To create a map, first initialize the Radar SDK with your publishable key. Then ```html - - + + @@ -98,8 +98,8 @@ To create an autocomplete input, first initialize the Radar SDK with your publis ```html - - + + @@ -130,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 f053aa99..3fee9a30 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "radar-sdk-js", - "version": "4.1.17", + "version": "4.1.18", "lockfileVersion": 3, "requires": true, "packages": { diff --git a/package.json b/package.json index 6c2db0ed..453a8cba 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "radar-sdk-js", - "version": "4.1.17", + "version": "4.1.18", "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 57a78b42..cfe87e56 100644 --- a/src/api/verify.ts +++ b/src/api/verify.ts @@ -44,13 +44,13 @@ class VerifyAPI { }; let userAgent = navigator.userAgent; - const mac = userAgent && userAgent.toLowerCase().includes('mac'); + const apple = userAgent && (userAgent.toLowerCase().includes('mac') || userAgent.toLowerCase().includes('iphone') || userAgent.toLowerCase().includes('ipod') || userAgent.toLowerCase().includes('ipad')); const response: any = await Http.request({ method: 'GET', path: 'verify', data: body, - host: mac ? 'https://radar-verify.com:52516' : 'http://localhost:52516', + host: apple ? 'https://radar-verify.com:52516' : 'http://localhost:52516', }); const { user, events, token } = response; diff --git a/src/version.ts b/src/version.ts index af694c34..463b37f4 100644 --- a/src/version.ts +++ b/src/version.ts @@ -1 +1 @@ -export default '4.1.17'; +export default '4.1.18';