Skip to content

Commit 7897ea6

Browse files
committed
fix(client-scroll): add scrollRestoreTechnique option as alternative to cookie for restoring scroll position - fixes #630
1 parent aaefbd8 commit 7897ea6

File tree

2 files changed

+8
-1
lines changed

2 files changed

+8
-1
lines changed

lib/default-config.js

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -261,6 +261,13 @@ module.exports = {
261261
*/
262262
scrollThrottle: 0,
263263

264+
/**
265+
* @property scrollRestoreTechnique
266+
* @type String
267+
* @default 'window.name'
268+
*/
269+
scrollRestoreTechnique: "window.name",
270+
264271
/**
265272
* Time, in milliseconds, to wait before
266273
* instruction browser to reload/inject following a

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
"dependencies": {
3333
"anymatch": "^1.3.0",
3434
"async-each-series": "^0.1.1",
35-
"browser-sync-client": "^2.0.3",
35+
"browser-sync-client": "^2.1.0",
3636
"browser-sync-ui": "^0.5.9",
3737
"chokidar": "^1.0.3",
3838
"connect": "^3.3.5",

0 commit comments

Comments
 (0)