Skip to content

Commit 72eaa12

Browse files
committed
Patch menu shortcut issue
Signed-off-by: Aaron Huang <aaroms9733@gmail.com>
1 parent 1a0e591 commit 72eaa12

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

src/electron/menu/darwinMenu.ts

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
1+
import * as isDev from 'electron-is-dev';
2+
import * as path from 'path';
13
export default function DarwinMenu (app, mainWindow) {
4+
const startURL = isDev
5+
? 'http://localhost:16888/'
6+
: `file://${path.join(__dirname, "../../build/index.html")}`;
27
const menu = [
38
{
49
label: 'Crane',
@@ -31,7 +36,7 @@ export default function DarwinMenu (app, mainWindow) {
3136
label: 'Perferences...',
3237
accelerator: 'Command+,',
3338
click: (item, focusedWindow) => {
34-
focusedWindow.loadURL(`http://localhost:16888/#/settings/dockerhub`);
39+
focusedWindow.loadURL(`${startURL}#/settings/dockerhub`);
3540
}
3641
},
3742
{

0 commit comments

Comments
 (0)