Call updateDeviceBlockHeight from router

This commit is contained in:
Sosthene 2025-08-23 16:04:34 +02:00
parent 77d9c1ad43
commit 2ba7be8dbb

View File

@ -156,13 +156,15 @@ export async function init(): Promise<void> {
// We connect to all relays now
await services.connectAllRelays();
await services.updateDeviceBlockHeight();
// We register all the event listeners if we run in an iframe
if (window.self !== window.top) {
await registerAllListeners();
}
if (services.isPaired()) {
await navigate('account');
await navigate('process');
} else {
await navigate('home');
}