Skip to content

Commit

Permalink
chore: hide dev tools
Browse files Browse the repository at this point in the history
  • Loading branch information
dev-AshishRanjan committed Jan 18, 2024
1 parent 818a5a9 commit 1c2decf
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 6 deletions.
4 changes: 2 additions & 2 deletions src/app/js/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -149,14 +149,14 @@ window.ipcRenderer.on("proxy:success", (e, options) => {
fireToast(e.msg, "success");
setTimeout(() => {
reRenderMainWindow();
}, 500);
}, 600);
});
window.ipcRenderer.on("proxy:error", (e, options) => {
console.log({ e });
fireToast(e.msg, "error");
setTimeout(() => {
reRenderMainWindow();
}, 500);
}, 600);
});
window.ipcRenderer.on("proxy:warning", (e, options) => {
console.log({ e });
Expand Down
15 changes: 11 additions & 4 deletions src/index.js
Original file line number Diff line number Diff line change
Expand Up @@ -155,6 +155,12 @@ const menu = [
click: () => createURLWindow(),
accelerator: "CmdOrCtrl+F",
},
{
label: "Open Dev Tools",
click: () => mainWindow.webContents.openDevTools(),
accelerator: "CmdOrCtrl+O",
visible: false,
},
],
},
]
Expand Down Expand Up @@ -211,10 +217,11 @@ const menu = [
accelerator: "CmdOrCtrl+F",
},
{
label: "Open Dev Tools",
click: () => mainWindow.webContents.openDevTools(),
accelerator: "CmdOrCtrl+O",
},
label: "Open Dev Tools",
click: () => mainWindow.webContents.openDevTools(),
accelerator: "CmdOrCtrl+O",
visible: false,
},
],
},
]
Expand Down

0 comments on commit 1c2decf

Please sign in to comment.