diff options
| author | Priyansh <[email protected]> | 2020-12-22 18:05:45 +0530 |
|---|---|---|
| committer | Priyansh <[email protected]> | 2020-12-22 18:05:45 +0530 |
| commit | 19fa6c89ab00ee43f0a39f203bdb17b0717382a3 (patch) | |
| tree | 2354df8fca40c78956643dbf64dd7fdf0bfde5f7 | |
| parent | 2190807415b23db74d8798a6014c08123f29492f (diff) | |
| download | styx-19fa6c89ab00ee43f0a39f203bdb17b0717382a3.tar.xz styx-19fa6c89ab00ee43f0a39f203bdb17b0717382a3.zip | |
Set nodeIntegration to true and add basic HTML
| -rw-r--r-- | app/app.html | 11 | ||||
| -rw-r--r-- | main.js | 7 |
2 files changed, 16 insertions, 2 deletions
diff --git a/app/app.html b/app/app.html new file mode 100644 index 0000000..e9e71bc --- /dev/null +++ b/app/app.html @@ -0,0 +1,11 @@ +<!DOCTYPE html> +<html lang="en"> +<head> + <meta charset="UTF-8"> + <meta name="viewport" content="width=device-width, initial-scale=1.0"> + <title>Styx</title> +</head> +<body> + Styx File Manager +</body> +</html>
\ No newline at end of file @@ -10,17 +10,20 @@ function createWindow () { minHeight: 600, width: 800, height: 600, + webPreferences: { + nodeIntegration: true + } }) // and load the index.html of the app. win.loadURL(url.format({ - pathname: path.join(__dirname, 'app/markups/home.html'), + pathname: path.join(__dirname, 'app/app.html'), protocol: 'file:', slashes: true })) // Open the DevTools. -// win.webContents.openDevTools() + // win.webContents.openDevTools() // Emitted when the window is closed. win.on('closed', () => { |
