Skip to content

Commit

Permalink
Force simple build
Browse files Browse the repository at this point in the history
  • Loading branch information
arhtudormorar committed Dec 27, 2023
1 parent b0f9588 commit 68faeff
Showing 1 changed file with 19 additions and 1 deletion.
20 changes: 19 additions & 1 deletion build/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -82,5 +82,23 @@
To begin the development, run `npm start` or `yarn start`.
To create a production bundle, use `npm run build` or `yarn build`.
-->
</body>
<h1>Parent Window</h1>
<button onclick="openChildWindow()">Open Child Window</button>
<script>
let childWindow;
window.name = "parent";
function openChildWindow() {
childWindow = window.open('https://next-wallet.multiverx.com', 'ChildWindowTab');

// Add an event listener to listen for messages from the child window
window.addEventListener('message', function (event) {
if (event.data === 'ChildWindowActionCompleted') {
console.log(112, event.data);
}
});
}
</script>

</body>

</html>

0 comments on commit 68faeff

Please sign in to comment.