* chore: remove unused assets

* feat: about ontime

* refactor: cleanup unused
This commit is contained in:
Carlos Valente
2023-04-25 22:31:56 +02:00
committed by GitHub
parent 8f834fed35
commit 0b94fc71a4
39 changed files with 307 additions and 112 deletions
-3
View File
@@ -6,9 +6,6 @@ module.exports = {
development: 'http://localhost:3000/editor',
production: 'http://localhost:4001/editor',
},
externalUrls: {
help: 'https://cpvalente.gitbook.io/ontime/',
},
server: {
pathToEntrypoint: '../extraResources/server/index.cjs'
},
+1 -11
View File
@@ -234,12 +234,6 @@ ipcMain.on('shutdown', () => {
// Window manipulation
ipcMain.on('set-window', (event, arg) => {
switch (arg) {
case 'to-max':
win.maximize();
break;
case 'to-tray':
win.hide();
break;
case 'show-dev':
win.webContents.openDevTools({ mode: 'detach' });
break;
@@ -250,9 +244,5 @@ ipcMain.on('set-window', (event, arg) => {
// Open links external
ipcMain.on('send-to-link', (event, arg) => {
if (arg === 'help') {
shell.openExternal(electronConfig.externalUrls.help);
} else {
shell.openExternal(arg);
}
shell.openExternal(arg);
});