Skip to content

fix: correct BrowserWindow icon path in src/main.js#27

Open
KernelChief wants to merge 1 commit intoforgexfoundation:mainfrom
KernelChief:main
Open

fix: correct BrowserWindow icon path in src/main.js#27
KernelChief wants to merge 1 commit intoforgexfoundation:mainfrom
KernelChief:main

Conversation

@KernelChief
Copy link

This PR fixes the app icon path used when creating the BrowserWindow.

Change made

In src/main.js, line 53 was updated from:

icon: path.join(__dirname, 'assets/icon.png'),

to:

icon: path.join(__dirname, '../assets/icon.png'),

Why

main.js is located in src/, while the icon file is located in the top-level assets/ directory. The previous path resolved to src/assets/icon.png (non-existent). The new path correctly resolves to assets/icon.png.

Scope

This PR is intentionally minimal and only includes the icon path fix (no unrelated Sonar/lint changes).

Verification

  • Ran the app locally.
  • Confirmed the icon is now loaded correctly.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant