Skip to content

Commit 62f5c2b

Browse files
committed
Merge pull request #169 from longzheng/patch-1
Maintain history state object when changing pages
2 parents d61fffc + 165ab54 commit 62f5c2b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/extension/history.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ var IASHistoryExtension = function (options) {
3030
if (!window.history || !window.history.replaceState) {
3131
return;
3232
}
33+
34+
state = history.state;
3335

3436
history.replaceState(state, document.title, url);
3537
};

0 commit comments

Comments
 (0)