Skip to content

Commit

Permalink
Patch menu shortcut issue
Browse files Browse the repository at this point in the history
Signed-off-by: Aaron Huang <aaroms9733@gmail.com>
  • Loading branch information
aar0nTw committed Jan 7, 2022
1 parent 1a0e591 commit 72eaa12
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion src/electron/menu/darwinMenu.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,9 @@
import * as isDev from 'electron-is-dev';
import * as path from 'path';
export default function DarwinMenu (app, mainWindow) {
const startURL = isDev
? 'http://localhost:16888/'
: `file://${path.join(__dirname, "../../build/index.html")}`;
const menu = [
{
label: 'Crane',
Expand Down Expand Up @@ -31,7 +36,7 @@ export default function DarwinMenu (app, mainWindow) {
label: 'Perferences...',
accelerator: 'Command+,',
click: (item, focusedWindow) => {
focusedWindow.loadURL(`http://localhost:16888/#/settings/dockerhub`);
focusedWindow.loadURL(`${startURL}#/settings/dockerhub`);
}
},
{
Expand Down

0 comments on commit 72eaa12

Please sign in to comment.