Skip to content

Commit 0c6ab89

Browse files
Merge pull request #1 from mangledbottles/Router-P2P
Router P2P
2 parents 221c366 + 7ce3e32 commit 0c6ab89

File tree

6 files changed

+343
-162
lines changed

6 files changed

+343
-162
lines changed

Client/electron/electron.js

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,13 @@
11
const path = require('path');
22
const { app, BrowserWindow } = require('electron');
3+
const {
4+
default: installExtension,
5+
VUEJS3_DEVTOOLS
6+
} = require("electron-devtools-installer");
37

48
const isDev = process.env.IS_DEV == "true" ? true : false;
59

6-
function createWindow() {
10+
async function createWindow() {
711
// Create the browser window.
812
const mainWindow = new BrowserWindow({
913
width: 800,
@@ -25,6 +29,11 @@ function createWindow() {
2529
);
2630
// Open the DevTools.
2731
if (isDev) {
32+
// await installExtension([VUEJS3_DEVTOOLS]);
33+
await installExtension({
34+
id: 'ljjemllljcmogpfapbkkighbhhppjdbg',
35+
electron: '>=1.2.1'
36+
})
2837
mainWindow.webContents.openDevTools();
2938
}
3039
}

Client/package-lock.json

Lines changed: 154 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

Client/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@
2323
"cross-env": "^7.0.3",
2424
"electron": "^15.3.0",
2525
"electron-builder": "^22.13.1",
26+
"electron-devtools-installer": "^3.2.0",
2627
"naive-ui": "^2.20.2",
2728
"typescript": "^4.4.3",
2829
"vfonts": "^0.1.0",

0 commit comments

Comments
 (0)