forked from electron/electron-quick-start
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.html
31 lines (28 loc) · 1.06 KB
/
index.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- https://developer.mozilla.org/en-US/docs/Web/HTTP/CSP -->
<meta http-equiv="Content-Security-Policy" content="default-src 'self'; script-src 'self'; style-src 'self' 'unsafe-inline'">
<link href="./styles.css" rel="stylesheet">
<title>Mike Electron</title>
</head>
<body>
<h1>Mike Electron App</h1>
We are using Node.js <span id="node-version"></span>,
Chromium <span id="chrome-version"></span>,
and Electron <span id="electron-version"></span>.
<h2>This will be replaced</h2> <!-- Gets replaced by the script in renderer.js (which calls worker.js) -->
<!-- You can also require other files to run in this process -->
<script src="./renderer.js"></script>
<!-- From COPILOT -->
<script>
// Load the preload script
require('./preload.js');
// Load your React app
const { render } = require('react-dom');
const App = require('./src/App.js').default;
render(<App />, document.getElementById('root'));
</script>
</body>
</html>