1
0
mirror of https://github.com/misskey-dev/misskey.git synced 2026-05-01 19:45:51 +02:00

なんかもうめっちゃ変えた

This commit is contained in:
syuilo
2017-01-21 21:08:40 +09:00
parent cd6b681748
commit 5da436a285
10 changed files with 31 additions and 49 deletions

View File

@@ -67,6 +67,11 @@ module.exports = callback => {
if (me != null) {
riot.observable(me);
me.update = data => {
if (data) Object.assign(me, data);
me.trigger('updated');
};
if (me.data.cache) {
localStorage.setItem('me', JSON.stringify(me));