mirror of
https://iceshrimp.dev/crimekillz/trashposs
synced 2024-11-23 01:13:48 +01:00
Resolve #5860
This commit is contained in:
parent
f9bd7ab428
commit
57096adf4e
@ -275,8 +275,14 @@ export default Vue.extend({
|
|||||||
methods: {
|
methods: {
|
||||||
capture(withHandler = false) {
|
capture(withHandler = false) {
|
||||||
if (this.$store.getters.isSignedIn) {
|
if (this.$store.getters.isSignedIn) {
|
||||||
|
if (document.body.contains(this.$el)) {
|
||||||
this.connection.send('sn', { id: this.appearNote.id });
|
this.connection.send('sn', { id: this.appearNote.id });
|
||||||
if (withHandler) this.connection.on('noteUpdated', this.onStreamNoteUpdated);
|
if (withHandler) this.connection.on('noteUpdated', this.onStreamNoteUpdated);
|
||||||
|
} else {
|
||||||
|
this.$once('hook:activated', () => {
|
||||||
|
this.capture(withHandler);
|
||||||
|
});
|
||||||
|
}
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user