()
| 4 | const { app, BrowserWindow, ipcMain } = require('electron') |
| 5 | |
| 6 | async function createWindow() { |
| 7 | const win = new BrowserWindow({ |
| 8 | width: 400, |
| 9 | height: 600, |
| 10 | autoHideMenuBar: true, |
| 11 | webPreferences: { |
| 12 | preload: path.join(__dirname, 'preload.js') |
| 13 | } |
| 14 | }) |
| 15 | win.loadFile('index.html') |
| 16 | } |
| 17 | |
| 18 | ipcMain.handle('start', async (event, url, keyboard, count, option) => { |
| 19 | seobot.main(url, keyboard, count, option) |