mirror of
https://github.com/FJurmanovic/wallet-web.git
synced 2026-02-06 06:08:10 +00:00
custom callbacks from base element
This commit is contained in:
@@ -12,15 +12,15 @@ class HomePageElement extends BasePageElement {
|
||||
super();
|
||||
}
|
||||
|
||||
connectedCallback() {
|
||||
elementConnected = () => {
|
||||
this.pingService = new PingService(this.appMain?.appService);
|
||||
this.update();
|
||||
window.addEventListener("tokenchange", this.update);
|
||||
}
|
||||
};
|
||||
|
||||
disconnectedCallback(): void {
|
||||
elementDisconnected = (): void => {
|
||||
window.removeEventListener("tokenchange", this.update);
|
||||
}
|
||||
};
|
||||
|
||||
getPong = async () => {
|
||||
try {
|
||||
|
||||
Reference in New Issue
Block a user