Skip to content

Commit

Permalink
chore: update html
Browse files Browse the repository at this point in the history
  • Loading branch information
MadaraUchiha-314 committed Mar 14, 2024
1 parent e45bffc commit f833079
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion packages/examples/project-a/public/esm/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,10 @@
.addEventListener('click', async () => {
console.log('doing container.init()');
await container.init(sharedScope);
console.log('shared scope: ', __FEDERATION__.__SHARE__);
console.log(
'shared scope: ',
globalThis?.__FEDERATION__?.__SHARE__ ?? sharedScope,
);
});
document
.getElementById('load-exposed-react')
Expand Down
5 changes: 4 additions & 1 deletion packages/examples/project-a/public/system/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,10 @@
.addEventListener('click', async () => {
console.log('doing container.init()');
await container.init(sharedScope);
console.log('shared scope: ', __FEDERATION__.__SHARE__);
console.log(
'shared scope: ',
globalThis?.__FEDERATION__?.__SHARE__ ?? sharedScope,
);
});

document
Expand Down

0 comments on commit f833079

Please sign in to comment.