Add scrollRestoration option

This commit is contained in:
Behind The Math committed 2018-01-22 18:56:22 -05:00
1 parent 546b9abba3
commit e7935d9c74
4 files changed
+7 -1

No files matched your search

+1
View File
@@ -24,6 +24,7 @@ module.exports = function(options) {
this.options.cacheBust = (typeof this.options.cacheBust === "undefined") ? true : this.options.cacheBust
this.options.debug = this.options.debug || false
this.options.timeout = this.options.timeout || 0
this.options.scrollRestoration = (typeof this.options.scrollRestoration !== "undefined") ? this.options.scrollRestoration : true
// we can’t replace body.outerHTML or head.outerHTML
// it create a bug where new body or new head are created in the dom