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:
Queen Bee 2018-01-05 12:27:36 -08:00
parent d672f134ef
commit efb3decd04
4 changed files with 20 additions and 3 deletions

View File

@ -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>

View File

@ -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;

View File

@ -8,7 +8,7 @@
},
"devDependencies": {},
"scripts": {
"start": "documentit ."
"start": "electron ."
},
"repository": {
"type": "git",

0
renderer.js Normal file
View File