work around worker stack issues in safari

This commit is contained in:
2024-12-02 21:03:18 -08:00
parent 52bbb5aa65
commit ebaee19bcb
3 changed files with 43 additions and 3 deletions

View File

@@ -0,0 +1,18 @@
<html>
<head>
<script src="worker.js"></script>
<script>
sendResponse = (msg) => {
console.log('RETURN', msg)
window.parent.postMessage(msg, '*')
}
console.log('WORKER INITIALIZED')
</script>
<script src="newt.js"></script>
</head>
<body>
</body>
</html>