Skip to content

Commit

Permalink
remove electron-reload lib
Browse files Browse the repository at this point in the history
  • Loading branch information
henrique-coder committed Jan 23, 2024
1 parent 9897cda commit ff7cbbe
Show file tree
Hide file tree
Showing 3 changed files with 1 addition and 211 deletions.
11 changes: 1 addition & 10 deletions main.js
Original file line number Diff line number Diff line change
@@ -1,8 +1,5 @@
const { app, BrowserWindow, ipcMain, shell } = require('electron');
const axios = require('axios');
const path = require('path');
const { format } = require('url');
const reload = require('electron-reload');

let mainWindow;

Expand All @@ -20,13 +17,7 @@ function createWindow() {
mainWindow.removeMenu();
}

app.whenReady().then(() => {
createWindow();
reload(__dirname, {
electron: path.join(__dirname, 'node_modules', '.bin', 'electron'),
awaitWriteFinish: true,
});
});
app.whenReady().then(createWindow);

app.on('window-all-closed', () => {
if (process.platform !== 'darwin') {
Expand Down
198 changes: 0 additions & 198 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 0 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,5 @@
"dependencies": {
"axios": "^1.6.5",
"electron": "^28.1.4"
},
"devDependencies": {
"electron-reload": "^2.0.0-alpha.1"
}
}

0 comments on commit ff7cbbe

Please sign in to comment.