react-scroll
Advanced tools
Comparing version 1.7.9 to 1.7.10
@@ -64,3 +64,3 @@ 'use strict'; | ||
changeHash: function changeHash(to) { | ||
if (this.isInitialized()) { | ||
if (this.isInitialized() && _utils2.default.getHash() !== to) { | ||
_utils2.default.pushHash(to); | ||
@@ -67,0 +67,0 @@ } |
@@ -11,3 +11,3 @@ 'use strict'; | ||
var loc = window.location; | ||
history.pushState(null, null, hash ? hash | ||
history.pushState(null, null, hash ? loc.pathname + loc.search + hash | ||
// remove hash | ||
@@ -14,0 +14,0 @@ : loc.pathname + loc.search); |
{ | ||
"name": "react-scroll", | ||
"version": "1.7.9", | ||
"version": "1.7.10", | ||
"description": "A scroll component for React.js", | ||
@@ -5,0 +5,0 @@ "main": "modules", |
100275