mirror of
https://github.com/flarum/framework.git
synced 2024-12-03 07:33:36 +08:00
Fix app.route
initialization
The first argument being an object breaks the forum, since a function can work in `Object.assign` if it is the first argument.
This commit is contained in:
parent
fb1dd360d7
commit
83b1c4d5f6
|
@ -80,7 +80,7 @@ export default class ForumApplication extends Application {
|
||||||
|
|
||||||
routes(this);
|
routes(this);
|
||||||
|
|
||||||
this.route = Object.assign({}, (Object.getPrototypeOf(Object.getPrototypeOf(this)) as Application).route.bind(this), makeRouteHelpers(this));
|
this.route = Object.assign((Object.getPrototypeOf(Object.getPrototypeOf(this)) as Application).route.bind(this), makeRouteHelpers(this));
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Reference in New Issue
Block a user