47 lines
1.7 KiB
HTML
Executable File
47 lines
1.7 KiB
HTML
Executable File
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="UTF-8" />
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
<title>Machine Control Center</title>
|
|
|
|
<!-- Content Security Policy - Allow WebSocket to API and Vite HMR -->
|
|
<meta http-equiv="Content-Security-Policy" content="
|
|
default-src 'self' 'unsafe-inline' 'unsafe-eval';
|
|
script-src 'self' 'unsafe-inline' 'unsafe-eval' http://localhost:* ws://localhost:*;
|
|
style-src 'self' 'unsafe-inline' http://localhost:*;
|
|
img-src 'self' data: blob: http://localhost:*;
|
|
font-src 'self' data: http://localhost:*;
|
|
connect-src 'self'
|
|
https://mc.exbytestudios.com wss://mc.exbytestudios.com
|
|
https://test.exbytestudios.com wss://test.exbytestudios.com
|
|
http://localhost:* https://localhost:* ws://localhost:* wss://localhost:*;
|
|
frame-src 'self'
|
|
https://mc.exbytestudios.com
|
|
https://test.exbytestudios.com
|
|
http://localhost:* https://localhost:*;
|
|
object-src 'none';
|
|
base-uri 'self';
|
|
form-action 'self';
|
|
frame-ancestors 'none';
|
|
">
|
|
</head>
|
|
<body>
|
|
<div id="root">Loading...</div>
|
|
<script>
|
|
console.log('HTML loaded, starting debug...');
|
|
console.log('Root element:', document.getElementById('root'));
|
|
</script>
|
|
<script type="module" src="./src/renderer/main.tsx"></script>
|
|
<script>
|
|
// Add error handlers
|
|
window.addEventListener('error', (e) => {
|
|
console.error('JavaScript Error:', e.error);
|
|
});
|
|
|
|
window.addEventListener('unhandledrejection', (e) => {
|
|
console.error('Unhandled Promise Rejection:', e.reason);
|
|
});
|
|
</script>
|
|
</body>
|
|
</html> |