From 546b9abba3f9c453de349c68260dbb912983f343 Mon Sep 17 00:00:00 2001 From: Behind The Math Date: Mon, 22 Jan 2018 17:32:59 -0500 Subject: [PATCH] Small bug fix --- index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/index.js b/index.js index 7bd2c4c..5655c91 100644 --- a/index.js +++ b/index.js @@ -247,7 +247,7 @@ Pjax.prototype = { url: window.location.href, title: document.title, uid: this.maxUid, - scrollPos: 0 + scrollPos: [0, 0] }, document.title) } @@ -259,7 +259,7 @@ Pjax.prototype = { url: state.href, title: state.options.title, uid: this.maxUid, - scrollPos: 0 + scrollPos: [0, 0] }, state.options.title, state.href)