Add more documentation and tests for options.currentUrlFullReload

Closes #17
This commit is contained in:
Behind The Math
2018-02-01 14:02:35 -05:00
parent 2ec4c14a46
commit a2aced4f36
3 changed files with 28 additions and 0 deletions

View File

@@ -24,6 +24,7 @@ module.exports = function(options) {
options.cacheBust = (typeof options.cacheBust === "undefined") ? true : options.cacheBust
options.debug = options.debug || false
options.timeout = options.timeout || 0
options.currentUrlFullReload = (typeof options.currentUrlFullReload === "undefined") ? false : options.currentUrlFullReload
// We cant replace body.outerHTML or head.outerHTML.
// It creates a bug where a new body or head are created in the DOM.