diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2017-01-21 21:08:40 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2017-01-21 21:08:40 +0900 |
| commit | 5da436a285b37af7a7bd34a5230f1e5e579f8a46 (patch) | |
| tree | 0877353361f3b6b5320f4ca54bc273d63dd3964e /src/web/app/boot.js | |
| parent | [API] Implement disconnect/twitter (diff) | |
| download | misskey-5da436a285b37af7a7bd34a5230f1e5e579f8a46.tar.gz misskey-5da436a285b37af7a7bd34a5230f1e5e579f8a46.tar.bz2 misskey-5da436a285b37af7a7bd34a5230f1e5e579f8a46.zip | |
なんかもうめっちゃ変えた
Diffstat (limited to 'src/web/app/boot.js')
| -rw-r--r-- | src/web/app/boot.js | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/src/web/app/boot.js b/src/web/app/boot.js index 5f4dc79af8..14cec68704 100644 --- a/src/web/app/boot.js +++ b/src/web/app/boot.js @@ -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)); |