App component: Check this.document instead of client document.
This commit is contained in:
parent
c9d02ebcd7
commit
27511be14e
|
@ -271,12 +271,12 @@ export class AppComponent implements OnInit, OnDestroy {
|
|||
initAdminToolCommunity(communityId) {
|
||||
if (communityId) {
|
||||
this.properties.adminToolsPortalType = "community";
|
||||
if (typeof document === 'undefined') {
|
||||
if (this.document) {
|
||||
this.initLayout(communityId);
|
||||
}
|
||||
}else{
|
||||
this.properties.adminToolsPortalType = "connect";
|
||||
if (typeof document === 'undefined') {
|
||||
if (this.document) {
|
||||
this.initLayout('connect');
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
Subproject commit 2b83920bc46f634921aeae2d7a05e49608047cb7
|
||||
Subproject commit e6974dfd0f989955999f7ccffa19e2e266867723
|
Loading…
Reference in New Issue