Browse Source

Merge pull request #11326 from vvlladd28/bug/mobile-app/open-dashboard-wait-init

Fixed issue with opening dashboards in the mobile app on iOS
pull/11373/head
Igor Kulikov 2 years ago
committed by GitHub
parent
commit
bd25679e30
No known key found for this signature in database GPG Key ID: B5690EEEBB952194
  1. 2
      ui-ngx/src/app/core/services/mobile.service.ts

2
ui-ngx/src/app/core/services/mobile.service.ts

@ -30,6 +30,7 @@ const dashboardLoadedHandler = 'tbMobileDashboardLoadedHandler';
const dashboardLayoutHandler = 'tbMobileDashboardLayoutHandler';
const navigationHandler = 'tbMobileNavigationHandler';
const mobileHandler = 'tbMobileHandler';
const mobileReadyHandler = 'tbMobileReadyHandler';
// @dynamic
@Injectable({
@ -54,6 +55,7 @@ export class MobileService {
this.mobileApp = isDefined(this.mobileChannel);
if (this.mobileApp) {
window.addEventListener('message', this.onWindowMessageListener);
this.mobileChannel.callHandler(mobileReadyHandler);
}
}

Loading…
Cancel
Save