mirror of
				https://github.com/skishore/makemeahanzi.git
				synced 2025-10-31 10:56:39 +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; }); |     types.map((x) => { if (glyph.stages[x]) last_completed_stage = x; }); | ||||||
|     constructStage(last_completed_stage); |     constructStage(last_completed_stage); | ||||||
|   } else { |   } 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)) { |     if (!_.isEqual(glyph.metadata, last_glyph.metadata)) { | ||||||
|       stage.refreshUI(glyph.character, glyph.metadata); |       stage.refreshUI(glyph.character, glyph.metadata); | ||||||
|     } |     } | ||||||
|  | |||||||
		Reference in New Issue
	
	Block a user
	 Shaunak Kishore
					Shaunak Kishore