mirror of
https://github.com/tsightler/ring-mqtt.git
synced 2025-10-24 17:20:23 +08:00
Fix token app
This commit is contained in:
@@ -17,6 +17,10 @@ class TokenApp {
|
||||
utils.event.on('ringState', async (state) => {
|
||||
if (state === 'connected') {
|
||||
this.ringConnected = true
|
||||
// Only the addon leaves the web UI running all the time
|
||||
if (process.env.RUNMODE !== 'addon') {
|
||||
this.stop()
|
||||
}
|
||||
} else {
|
||||
this.ringConnected = false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user