diff --git a/.travis.yml b/.travis.yml new file mode 100644 index 0000000..d2f3209 --- /dev/null +++ b/.travis.yml @@ -0,0 +1 @@ +language: node_js \ No newline at end of file diff --git a/README.md b/README.md index 8178c50..0bc6147 100644 --- a/README.md +++ b/README.md @@ -1,3 +1,5 @@ +[![Build Status](https://travis-ci.org/ipatate/react-router-scroll-memory.svg?branch=master)](https://travis-ci.org/ipatate/react-router-scroll-memory) + ### Simple react component to keep the scroll of the page and to restore it if the user clicks on the back button of its browser I did this package because I was frustrated that the new react router (4) does not restore the scroll when I click on the back button of my browser. By default, the component execute window.scrollTo(0,0), if the url not exist in memory. It only stores the last 2 url. diff --git a/package.json b/package.json index 7e23b17..80672ed 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "react-router-scroll-memory", - "version": "0.0.3", + "version": "0.0.4", "description": "Simple react component to keep the scroll of the page and to restore it if the user clicks on the back button of its browser", "main": "./dist/bundle.js", "scripts": {