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
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
1 changed files with
2 additions and
0 deletions
-
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); |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|