Skip to content

Commit

Permalink
fix(client-scroll): add scrollRestoreTechnique option as alternative …
Browse files Browse the repository at this point in the history
…to cookie for restoring scroll position - fixes #630
  • Loading branch information
shakyShane committed Jun 16, 2015
1 parent aaefbd8 commit 7897ea6
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 1 deletion.
7 changes: 7 additions & 0 deletions lib/default-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -261,6 +261,13 @@ module.exports = {
*/
scrollThrottle: 0,

/**
* @property scrollRestoreTechnique
* @type String
* @default 'window.name'
*/
scrollRestoreTechnique: "window.name",

/**
* Time, in milliseconds, to wait before
* instruction browser to reload/inject following a
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"dependencies": {
"anymatch": "^1.3.0",
"async-each-series": "^0.1.1",
"browser-sync-client": "^2.0.3",
"browser-sync-client": "^2.1.0",
"browser-sync-ui": "^0.5.9",
"chokidar": "^1.0.3",
"connect": "^3.3.5",
Expand Down

0 comments on commit 7897ea6

Please sign in to comment.