diff options
| author | syuilo <syuilotan@yahoo.co.jp> | 2020-07-27 23:25:37 +0900 |
|---|---|---|
| committer | syuilo <syuilotan@yahoo.co.jp> | 2020-07-27 23:25:37 +0900 |
| commit | 14b7f05af40ede154a767334dbbefc3458584290 (patch) | |
| tree | 6185ed6f79a6000dc65f738acf308062de339286 /src/client/scripts/stream.ts | |
| parent | ワードミュート (#6594) (diff) | |
| download | sharkey-14b7f05af40ede154a767334dbbefc3458584290.tar.gz sharkey-14b7f05af40ede154a767334dbbefc3458584290.tar.bz2 sharkey-14b7f05af40ede154a767334dbbefc3458584290.zip | |
refactor(client): Use v-model for note component, freeze object
Related: #6595
Diffstat (limited to 'src/client/scripts/stream.ts')
| -rw-r--r-- | src/client/scripts/stream.ts | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/client/scripts/stream.ts b/src/client/scripts/stream.ts index 4dcd3f1b2e..8a525ba002 100644 --- a/src/client/scripts/stream.ts +++ b/src/client/scripts/stream.ts @@ -112,10 +112,10 @@ export default class Stream extends EventEmitter { } for (const c of connections.filter(c => c != null)) { - c.emit(body.type, body.body); + c.emit(body.type, Object.freeze(body.body)); } } else { - this.emit(type, body); + this.emit(type, Object.freeze(body)); } } |