Skip to content

Commit

Permalink
Update to latest javascript ui
Browse files Browse the repository at this point in the history
  • Loading branch information
tulburg committed Feb 12, 2024
1 parent 22ab912 commit 2b17a49
Show file tree
Hide file tree
Showing 6 changed files with 6,005 additions and 10,855 deletions.
11 changes: 8 additions & 3 deletions app/main.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
const { app, BrowserWindow, ipcMain } = require('electron');
const { is } = require('electron-util');
const {app, BrowserWindow, ipcMain} = require('electron');
const {is} = require('electron-util');
const path = require('path');
const TrayGenerator = require('./tray-generator');

Expand All @@ -25,8 +25,13 @@ const createMainWindow = () => {
contextIsolation: false
}
});

mainWindow.on('blur', () => {
mainWindow.hide();
app.dock.hide();
});
if (is.development) {
mainWindow.webContents.openDevTools({ mode: 'detach' });
mainWindow.webContents.openDevTools({mode: 'detach'});
// mainWindow.loadURL('http://localhost:8080');
mainWindow.loadURL(`file://${path.join(__dirname, '/public/index.html')}`);
} else {
Expand Down
Loading

0 comments on commit 2b17a49

Please sign in to comment.