mirror of
https://github.com/advplyr/audiobookshelf.git
synced 2025-08-31 07:09:55 +02:00
Update:Remove log listener for root user & only set when on logger config page
This commit is contained in:
parent
916b41d587
commit
bca2cfda13
2 changed files with 6 additions and 9 deletions
|
@ -161,6 +161,7 @@ export default {
|
|||
},
|
||||
beforeDestroy() {
|
||||
if (!this.$root.socket) return
|
||||
this.$root.socket.emit('remove_log_listener')
|
||||
this.$root.socket.off('daily_logs', this.dailyLogsLoaded)
|
||||
this.$root.socket.off('log', this.logEvtReceived)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue