init
This commit is contained in:
47
mc_test/index.html
Executable file
47
mc_test/index.html
Executable file
@ -0,0 +1,47 @@
|
||||
<!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>
|
||||
Reference in New Issue
Block a user