mirror of
https://github.com/meteor/meteor.git
synced 2026-05-02 03:01:46 -04:00
17 lines
384 B
JavaScript
17 lines
384 B
JavaScript
var migratedKeys = {};
|
|
if (Meteor._reload) {
|
|
var migrationData = Meteor._reload.migrationData('session');
|
|
if (migrationData && migrationData.keys) {
|
|
migratedKeys = migrationData.keys;
|
|
}
|
|
}
|
|
|
|
// @export Session
|
|
Session = new ReactiveDict(migratedKeys);
|
|
|
|
if (Meteor._reload) {
|
|
Meteor._reload.onMigrate('session', function () {
|
|
return [true, {keys: Session.keys}];
|
|
});
|
|
}
|