Skip to content

Commit

Permalink
fix: using angular-webcomponents space instead of plain window (#305)
Browse files Browse the repository at this point in the history
  • Loading branch information
markuczy authored Jul 3, 2024
1 parent d36cf84 commit d338d83
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -66,8 +66,8 @@ export async function bootstrapRemoteComponent(

function getWindowState(): any {
const state = window as any
state['@onecx/angular-webcomponents'] = state['@onecx/angular-webcomponents'] || ({} as unknown)
return state
state['@onecx/angular-webcomponents'] ??= {} as unknown
return state['@onecx/angular-webcomponents']
}

function setShellZone(injector: Injector) {
Expand Down

0 comments on commit d338d83

Please sign in to comment.