mirror of
https://github.com/flarum/framework.git
synced 2024-12-12 06:03:39 +08:00
72be607a17
Can’t remember why…
10 lines
278 B
JavaScript
10 lines
278 B
JavaScript
export default function(app) {
|
|
if (app.preload.data) {
|
|
app.store.pushPayload({data: app.preload.data});
|
|
}
|
|
if (app.preload.session) {
|
|
app.session.token(app.preload.session.token);
|
|
app.session.user(app.store.getById('users', app.preload.session.userId));
|
|
}
|
|
};
|