Skip to content

Commit

Permalink
Merge pull request #118 from radarlabs/radar-verify
Browse files Browse the repository at this point in the history
use radar-verify.com, bump version
  • Loading branch information
nickpatrick authored Aug 21, 2023
2 parents bd41f32 + 8fd9cd7 commit e2bdf01
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 14 deletions.
15 changes: 7 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,6 @@
<a href="https://radar.com">Website</a> |
<a href="https://radar.com/blog">Blog</a> |
<a href="https://radar.com/documentation">Documentation</a> |
<a href="https://radar.com/documentation/faq">FAQ</a> |
<a href="mailto:[email protected]">Support</a>
</h4>

Expand Down Expand Up @@ -57,7 +56,7 @@ Radar.initialize('prj_test_pk_...', { /* options */ });
Add the following script in your `html` file
```html
<script src="https://js.radar.com/v4.1.2/radar.min.js"></script>
<script src="https://js.radar.com/v4.1.3/radar.min.js"></script>
```

Then initialize the Radar SDK
Expand All @@ -74,8 +73,8 @@ To create a map, first initialize the Radar SDK with your publishable key. Then
```html
<html>
<head>
<link href="https://js.radar.com/v4.1.2/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.1.2/radar.min.js"></script>
<link href="https://js.radar.com/v4.1.3/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.1.3/radar.min.js"></script>
</head>

<body>
Expand All @@ -99,8 +98,8 @@ To create an autocomplete input, first initialize the Radar SDK with your publis
```html
<html>
<head>
<link href="https://js.radar.com/v4.1.2/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.1.2/radar.min.js"></script>
<link href="https://js.radar.com/v4.1.3/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.1.3/radar.min.js"></script>
</head>

<body>
Expand Down Expand Up @@ -131,8 +130,8 @@ To power [geofencing](https://radar.com/documentation/geofencing/overview) exper
```html
<html>
<head>
<link href="https://js.radar.com/v4.1.2/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.1.2/radar.min.js"></script>
<link href="https://js.radar.com/v4.1.3/radar.css" rel="stylesheet">
<script src="https://js.radar.com/v4.1.3/radar.min.js"></script>
</head>

<body>
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -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",
Expand Down
2 changes: 1 addition & 1 deletion src/api/verify.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down
2 changes: 1 addition & 1 deletion src/http.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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());
Expand Down
2 changes: 1 addition & 1 deletion src/version.ts
Original file line number Diff line number Diff line change
@@ -1 +1 @@
export default '4.1.2';
export default '4.1.3';

0 comments on commit e2bdf01

Please sign in to comment.