mirror of
https://github.com/flarum/framework.git
synced 2024-12-01 14:20:47 +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));
|
|
}
|
|
};
|