mirror of
https://github.com/Stremio/stremio-web.git
synced 2026-04-21 07:32:02 +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);
|
const routeConfig = this.routeConfigForPath(hashPath);
|
||||||
if (routeConfig === null) {
|
if (routeConfig === null) {
|
||||||
if (typeof this.props.onPathNotMatch === 'function') {
|
if (typeof this.props.onPathNotMatch === 'function') {
|
||||||
this.props.onPathNotMatch(hashPath);
|
this.props.onPathNotMatch(event);
|
||||||
} else if (typeof this.props.homePath === 'string') {
|
} else if (typeof this.props.homePath === 'string') {
|
||||||
window.location.replace(`#${this.props.homePath}`);
|
window.location.replace(`#${this.props.homePath}`);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue