Fix token app

This commit is contained in:
tsightler
2022-03-04 21:02:03 -05:00
parent be1bafeb55
commit f5d4ab5a34
3 changed files with 15 additions and 17 deletions

View File

@@ -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
}