Skip to content

Commit

Permalink
refactor(routing): use read method
Browse files Browse the repository at this point in the history
  • Loading branch information
francoischalifour committed Apr 8, 2019
1 parent c78f21f commit d092a80
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions src/lib/routers/history.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,11 +51,8 @@ class BrowserHistory {
this._createURL = createURL;
this.parseURL = parseURL;

const routeState = this.parseURL({
qsModule: qs,
location: window.location,
});
const title = this.windowTitle && this.windowTitle(routeState);
const title = this.windowTitle && this.windowTitle(this.read());

setWindowTitle(title);
}

Expand Down

0 comments on commit d092a80

Please sign in to comment.