Skip to content

Commit c787110

Browse files
author
moritamori
committed
initial init
0 parents  commit c787110

File tree

5 files changed

+2267
-0
lines changed

5 files changed

+2267
-0
lines changed

.gitignore

+2
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
/node_modules
2+
/dist

index.html

+14
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
6+
<title>Document</title>
7+
</head>
8+
<body>
9+
<h1>Hello World!!</h1>
10+
We are using node <script>document.write(process.versions.node)</script>,
11+
Chrome <script>document.write(process.versions.chrome)</script>,
12+
and Electron <script>document.write(process.versions.electron)</script>
13+
</body>
14+
</html>

index.js

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
const { app, BrowserWindow } = require('electron');
2+
3+
let window;
4+
5+
app.on('ready', () => {
6+
window = new BrowserWindow({
7+
width: 800,
8+
height: 600,
9+
webPreferences: {
10+
nodeIntegration: true
11+
}
12+
})
13+
14+
15+
window.loadFile('index.html');
16+
});

0 commit comments

Comments
 (0)