added styling with bootswatch, corrected error on create browser window, corrected launch name to correctly launch the application using electron .
This commit is contained in:
parent
d672f134ef
commit
efb3decd04
17
index.html
17
index.html
|
@ -0,0 +1,17 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="utf-8">
|
||||
<title>DocumentIt</title>
|
||||
<link rel="stylesheet" href="https://bootswatch.com/4/pulse/bootstrap.min.css">
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<h1>DocumentIt</h1>
|
||||
</body>
|
||||
<script>
|
||||
require('./renderer.js');
|
||||
</script>
|
||||
|
||||
</html>
|
4
main.js
4
main.js
|
@ -7,7 +7,7 @@ let win;
|
|||
|
||||
function createWindow() {
|
||||
// Create browser window
|
||||
win = new BrowserWindow({ width: 800, height: 600, icon: });
|
||||
win = new BrowserWindow({ width: 800, height: 600 });
|
||||
|
||||
// Load index.html
|
||||
win.loadURL(url.format({
|
||||
|
@ -17,7 +17,7 @@ function createWindow() {
|
|||
}));
|
||||
|
||||
// Open devtools
|
||||
win.webContents().openDevTools();
|
||||
win.webContents.openDevTools();
|
||||
|
||||
win.on('closed', () => {
|
||||
win = null;
|
||||
|
|
|
@ -8,7 +8,7 @@
|
|||
},
|
||||
"devDependencies": {},
|
||||
"scripts": {
|
||||
"start": "documentit ."
|
||||
"start": "electron ."
|
||||
},
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
0
renderer.js
Normal file
0
renderer.js
Normal file
Loading…
Reference in New Issue
Block a user