diff --git a/src/js/package.json b/src/js/package.json index 186b1e5..c385a25 100644 --- a/src/js/package.json +++ b/src/js/package.json @@ -2,7 +2,7 @@ "name": "solitude", "version": "1.0.0", "description": "", - "main": "src/index.js", + "main": "index.js", "scripts": { "test": "echo \"Error: no test specified\" && exit 1", "portable": "electron-builder build --win --dir", diff --git a/src/js/src/index.js b/src/js/src/index.js index 15b65fe..9a8fa84 100644 --- a/src/js/src/index.js +++ b/src/js/src/index.js @@ -1,9 +1,13 @@ -const { app, BrowserWindow} = require('electron'); +const { app, BrowserWindow, ipcMain} = require('electron'); +/* +const path = require('path'); +const fs = require('fs'); +*/ function createWindow() { let win = new BrowserWindow({ - width:400, - height: 200, + width:640, + height: 480, webPreference: { nodeIntegration:true } @@ -11,4 +15,7 @@ win.loadFile('app.html'); } +ipcMain.on("write.local", (ipcEvent, savePath, content ) => { +}); + app.whenReady().then(createWindow) \ No newline at end of file