(
config: GoldenLayoutConfig,
root: JQuery<HTMLElement>,
)
| 617 | let settings: SiteSettings; |
| 618 | |
| 619 | function initializeLayout( |
| 620 | config: GoldenLayoutConfig, |
| 621 | root: JQuery<HTMLElement>, |
| 622 | ): [GoldenLayout, Hub, Themer, SiteSettings] { |
| 623 | const layout = new GoldenLayout(toGoldenLayoutConfig(config), root); |
| 624 | const hub = new Hub(layout, subLangId, defaultLangId); |
| 625 | const [themer, settings] = setupSettings(hub); |
| 626 | hub.initLayout(); |
| 627 | return [layout, hub, themer, settings]; |
| 628 | } |
| 629 | |
| 630 | try { |
| 631 | [layout, hub, themer, settings] = initializeLayout(config, root); |
no test coverage detected