remove window message listener
Gitea Actions Demo / Explore-Gitea-Actions (push) Failing after 43s Details

This commit is contained in:
Ladd Hoffman 2024-04-25 21:45:34 -05:00
parent 3593fafd91
commit 4a38104d10
1 changed files with 1 additions and 19 deletions

View File

@ -5,27 +5,9 @@
<link rel="icon" type="image/svg+xml" href="/dgf.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>DGF Prototype</title>
<script blocking="render">
console.log('adding window message event listener');
window.addEventListener(
'message',
(event) => {
if (event.data?.target?.startsWith('metamask')) return;
console.log('window message', event);
},
);
window.parent?.addEventListener(
'message',
(event) => {
if (event.data?.target?.startsWith('metamask')) return;
console.log('parent window message', event);
},
);
</script>
</head>
<body>
<div id="root"></div>
<script async type="module" src="/src/main.jsx"></script>
<script type="module" src="/src/main.jsx"></script>
</body>
</html>