File size: 557 Bytes
ffd5822 | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 | <!DOCTYPE html>
<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>
|