Skip to content

Commit

Permalink
Merge pull request #2179 from headlamp-k8s/fix-app-menu
Browse files Browse the repository at this point in the history
app: Fix serialization error in app
  • Loading branch information
illume authored Jul 22, 2024
2 parents 140b999 + fbc4d3b commit 8bdbce4
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion app/electron/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -989,7 +989,9 @@ function startElecron() {
});

mainWindow.webContents.on('dom-ready', () => {
mainWindow?.webContents.send('currentMenu', getDefaultAppMenu());
const defaultMenu = getDefaultAppMenu();
const currentMenu = JSON.parse(JSON.stringify(defaultMenu));
mainWindow?.webContents.send('currentMenu', currentMenu);
});

mainWindow.on('closed', () => {
Expand Down

0 comments on commit 8bdbce4

Please sign in to comment.