mirror of
https://github.com/skishore/makemeahanzi.git
synced 2025-10-30 10:26:40 +08:00
Turn on persistence layer
This commit is contained in:
@ -118,7 +118,8 @@ Tracker.autorun(() => {
|
||||
types.map((x) => { if (glyph.stages[x]) last_completed_stage = x; });
|
||||
constructStage(last_completed_stage);
|
||||
} else {
|
||||
// TODO(skishore): Save the glyph at this point.
|
||||
Meteor.call('saveGlyph', glyph,
|
||||
(error, data) => { if (error) console.error(error) });
|
||||
if (!_.isEqual(glyph.metadata, last_glyph.metadata)) {
|
||||
stage.refreshUI(glyph.character, glyph.metadata);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user