| <html> | |
| <head><title>Test</title></head> | |
| <body> | |
| <div id="root">Loading...</div> | |
| <script type="module"> | |
| window.onerror = (msg, src, line, col, err) => { | |
| document.getElementById('root').innerHTML = `<pre style="color:red">${msg}\n${src}:${line}:${col}\n${err?.stack || ''}</pre>`; | |
| }; | |
| window.addEventListener('unhandledrejection', (e) => { | |
| document.getElementById('root').innerHTML += `<pre style="color:orange">Unhandled: ${e.reason?.message}\n${e.reason?.stack || ''}</pre>`; | |
| }); | |
| import('/vessels/src/main.tsx'); | |
| </script> | |
| </body> | |
| </html> | |