watch for browser back button press and update

This commit is contained in:
Fran Jurmanović
2021-05-29 21:33:07 +02:00
parent fdb3eb5a0f
commit 1c346346f2
4 changed files with 18 additions and 8 deletions

View File

@@ -14,7 +14,7 @@ class HomePageElement extends HTMLElement {
@update
connectedCallback() {
this.pingService = new PingService(this.appMain?.appService);
this.getPong();
if (this.appMain.isAuth) this.getPong();
}
getPong = async () => {