Skip to content

Commit

Permalink
Added some features
Browse files Browse the repository at this point in the history
  • Loading branch information
tganzhorn committed Sep 27, 2021
1 parent 1eb5b3c commit 2638d31
Show file tree
Hide file tree
Showing 23 changed files with 579 additions and 474 deletions.
180 changes: 8 additions & 172 deletions package-lock.json

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

2 changes: 2 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -39,12 +39,14 @@
"@types/node": "^14.17.3",
"@types/react": "^17.0.9",
"@types/react-dom": "^17.0.6",
"@types/uuid": "^8.3.1",
"concurrently": "^5.3.0",
"cross-env": "^7.0.3",
"electron": "^13.0.0",
"electron-builder": "^22.10.5",
"electron-devtools-installer": "^3.2.0",
"electronmon": "^1.1.2",
"uuid": "^8.3.2",
"react": "^17.0.2",
"react-dom": "^17.0.2",
"react-hot-toast": "^2.1.1",
Expand Down
7 changes: 6 additions & 1 deletion public/electron.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
const { app, BrowserWindow } = require("electron");
const { app, BrowserWindow, shell } = require("electron");
const isDev = require("electron-is-dev");
const path = require("path");

Expand Down Expand Up @@ -41,6 +41,11 @@ function createWindow() {
} else {
callback(selectedPort.portId);
}
});

mainWindow.webContents.setWindowOpenHandler(({url}) => {
shell.openExternal(url);
return { action: 'deny' };
})

// Load from localhost if in development
Expand Down
1 change: 0 additions & 1 deletion src/App.css
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@
}

html {
overflow-y: overlay;
background-color: rgb(223, 223, 223);
}

Expand Down
Loading

0 comments on commit 2638d31

Please sign in to comment.