forked from fair/matrix-puppeteer-line
Don't set connected metric if user is not logged in
This commit is contained in:
parent
e7b78f9166
commit
d32e3819b0
|
@ -177,6 +177,9 @@ export default class MessagesPuppeteer {
|
||||||
}
|
}
|
||||||
|
|
||||||
async isDisconnected() {
|
async isDisconnected() {
|
||||||
|
if (!await this.isLoggedIn()) {
|
||||||
|
return true
|
||||||
|
}
|
||||||
const offlineIndicators = await Promise.all([
|
const offlineIndicators = await Promise.all([
|
||||||
this.page.$("mw-main-nav mw-banner mw-error-banner"),
|
this.page.$("mw-main-nav mw-banner mw-error-banner"),
|
||||||
this.page.$("mw-main-nav mw-banner mw-information-banner[title='Connecting']"),
|
this.page.$("mw-main-nav mw-banner mw-information-banner[title='Connecting']"),
|
||||||
|
|
Loading…
Reference in New Issue