mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-14 09:00:30 +00:00
pass event argument instead of hashPath when hash not match
This commit is contained in:
parent
a198c81aaa
commit
9e8aaaf281
1 changed files with 1 additions and 1 deletions
|
|
@ -81,7 +81,7 @@ class Router extends React.Component {
|
|||
const routeConfig = this.routeConfigForPath(hashPath);
|
||||
if (routeConfig === null) {
|
||||
if (typeof this.props.onPathNotMatch === 'function') {
|
||||
this.props.onPathNotMatch(hashPath);
|
||||
this.props.onPathNotMatch(event);
|
||||
} else if (typeof this.props.homePath === 'string') {
|
||||
window.location.replace(`#${this.props.homePath}`);
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue