mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-12-03 19:53:09 +02:00
Resolve #5860
This commit is contained in:
parent
47f3261b9f
commit
ff7ae427fd
1 changed files with 8 additions and 2 deletions
|
@ -275,8 +275,14 @@ export default Vue.extend({
|
|||
methods: {
|
||||
capture(withHandler = false) {
|
||||
if (this.$store.getters.isSignedIn) {
|
||||
this.connection.send('sn', { id: this.appearNote.id });
|
||||
if (withHandler) this.connection.on('noteUpdated', this.onStreamNoteUpdated);
|
||||
if (document.body.contains(this.$el)) {
|
||||
this.connection.send('sn', { id: this.appearNote.id });
|
||||
if (withHandler) this.connection.on('noteUpdated', this.onStreamNoteUpdated);
|
||||
} else {
|
||||
this.$once('hook:activated', () => {
|
||||
this.capture(withHandler);
|
||||
});
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
|
|
Loading…
Reference in a new issue