Skip to content

Commit 98e074f

Browse files
authored
Merge branch 'master' into dependabot/npm_and_yarn/hosted-git-info-2.8.9
2 parents d6fb698 + 492e9ba commit 98e074f

File tree

4 files changed

+5
-3
lines changed

4 files changed

+5
-3
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "react-coinbase-commerce",
3-
"version": "1.5.1",
3+
"version": "1.5.2",
44
"description": "A react component to easily embed a Coinbase Commerce Checkout within your application",
55
"keywords": [
66
"react",

readme.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@
33

44

55
# Coinbase Commerce React Button
6+
**Note**: This repository is not actively maintained.
7+
68
A button to embed a Coinbase Commerce checkout or charge directly into your React application.
79

810
```

src/components/IFrame.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@ export default class IFrame extends React.Component<Props, State> {
5353
componentDidMount(){
5454
// Add event listeners for the iframe
5555
window.addEventListener('message', this.handleMessage);
56-
const hostName = `${window.location.protocol}//${window.location.hostname}${window.location.port ? ':' + window.location.port : ''}`;
56+
const hostName = `${window.location.protocol}//${window.location.hostname}${window.location.port ? ':' + window.location.port : ''}/`;
5757
this.setState({ src: this.buildSrc(hostName) });
5858
}
5959

src/components/__snapshots__/IFrame.spec.js.snap

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ exports[`it renders and matches its snapshot 1`] = `
99
frameBorder="no"
1010
onLoad={[Function]}
1111
scrolling="no"
12-
src="https://commerce.coinbase.com/embed/checkout/aaaa?origin=http%3A%2F%2Flocalhost&version=1&buttonId=undefined&cacheDisabled=undefined"
12+
src="https://commerce.coinbase.com/embed/checkout/aaaa?origin=http%3A%2F%2Flocalhost%2F&version=1&buttonId=undefined&cacheDisabled=undefined"
1313
/>
1414
</div>
1515
`;

0 commit comments

Comments
 (0)