Skip to content

Commit bc4078d

Browse files
committed
docs: add badges
1 parent f4c0e1c commit bc4078d

File tree

2 files changed

+9
-1
lines changed

2 files changed

+9
-1
lines changed

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
# libreact
22

3+
[![][npm-badge]][npm-url] [![][travis-badge]][travis-url]
4+
35
React standard library, must-have toolbox for any React project.
46

57
- Collection of React sensors, FaCCs, HOCs, context providers, dummies, and [other goodies](#contents).
@@ -74,3 +76,9 @@ const MyComponent = mock();
7476
## License
7577

7678
[Unlicense](./LICENSE) - public domain.
79+
80+
81+
[npm-url]: https://www.npmjs.com/package/libreact
82+
[npm-badge]: https://img.shields.io/npm/v/libreact.svg
83+
[travis-url]: https://travis-ci.org/MailOnline/libreact
84+
[travis-badge]: https://travis-ci.org/MailOnline/libreact.svg?branch=master

src/LocationSensor/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -100,7 +100,7 @@ export class LocationSensor extends Component<ILocationSensorProps, ILocationSen
100100
port,
101101
protocol,
102102
search
103-
} = window.location;
103+
} = location;
104104

105105
return {
106106
trigger,

0 commit comments

Comments
 (0)