mirror of
https://github.com/placeholder-soft/prodigyapi.git
synced 2026-04-23 19:40:21 +08:00
Fix #75, don't set page hash to undefined
This commit is contained in:
@@ -722,12 +722,14 @@
|
||||
|
||||
if(self.options.scrollHistory) {
|
||||
|
||||
if(window.location.hash !== "#" + anchorText) {
|
||||
// IF STATEMENT ADDED BY ROBERT
|
||||
|
||||
if(history.replaceState) {
|
||||
if(window.location.hash !== "#" + anchorText && anchorText !== undefined) {
|
||||
|
||||
if(history.replaceState) {
|
||||
history.replaceState({}, "", "#" + anchorText);
|
||||
// provide a fallback
|
||||
} else {
|
||||
} else {
|
||||
scrollV = document.body.scrollTop;
|
||||
scrollH = document.body.scrollLeft;
|
||||
location.hash = "#" + anchorText;
|
||||
|
||||
Reference in New Issue
Block a user