commit 07e7d4c9c9228494774ede375d4b48336ff5f1f3 parent e00909b3392b2523d58fd5319106a6489e72721c Author: Sergej Orlov <wladimirych@gmail.com> Date: Thu, 9 Feb 2017 11:33:49 +0300 has[hashState] set hash via location.hash instead of location.replace to avoid mouse cursor flicker in Chrome Diffstat:
M | src/lib/leaflet.hashState/hashState.js | | | 3 | +-- |
1 file changed, 1 insertion(+), 2 deletions(-)
diff --git a/src/lib/leaflet.hashState/hashState.js b/src/lib/leaflet.hashState/hashState.js @@ -81,8 +81,7 @@ const hashState = { } } } - var hashString = '#' + stateItems.join('&'); - location.replace(hashString); + location.hash = stateItems.join('&'); },