Skip to content

Commit

Permalink
Merge pull request #531 from PaulMaly/patch-2
Browse files Browse the repository at this point in the history
Using replaceState with file:// protocol
  • Loading branch information
matthewp authored Jan 29, 2019
2 parents 338d669 + c662a7b commit af6696a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion page.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -1102,7 +1102,7 @@ pathToRegexp_1.tokensToRegExp = tokensToRegExp_1;

Context.prototype.save = function() {
var page = this.page;
if (hasHistory && page._window.location.protocol !== 'file:') {
if (hasHistory) {
page._window.history.replaceState(this.state, this.title,
page._hashbang && this.path !== '/' ? '#!' + this.path : this.canonicalPath);
}
Expand Down

0 comments on commit af6696a

Please sign in to comment.