Merge pull request #399 from thecodingmachine/fix/cowebsite

FIX: close the coWebSite on network error
This commit is contained in:
David Négrier 2020-11-09 11:27:52 +01:00 committed by GitHub
commit a14e227706
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -57,7 +57,7 @@ class CoWebsiteManager {
setTimeout(() => { setTimeout(() => {
this.fire(); this.fire();
}, animationTime) }, animationTime)
}); }).catch(() => this.closeCoWebsite());
} }
/** /**
@ -70,7 +70,7 @@ class CoWebsiteManager {
setTimeout(() => { setTimeout(() => {
this.fire(); this.fire();
}, animationTime) }, animationTime)
}); }).catch(() => this.closeCoWebsite());
} }
public closeCoWebsite(): Promise<void> { public closeCoWebsite(): Promise<void> {