Fix #75, don't set page hash to undefined

This commit is contained in:
Robert Lord 2014-06-11 22:10:31 -07:00
parent 5a69760f54
commit 4d4f6efeb8

View file

@ -722,7 +722,9 @@
if(self.options.scrollHistory) { if(self.options.scrollHistory) {
if(window.location.hash !== "#" + anchorText) { // IF STATEMENT ADDED BY ROBERT
if(window.location.hash !== "#" + anchorText && anchorText !== undefined) {
if(history.replaceState) { if(history.replaceState) {
history.replaceState({}, "", "#" + anchorText); history.replaceState({}, "", "#" + anchorText);