Skip to content

Commit 2389ae3

Browse files
Update Custom_main.md to clarify usage of custom_main.js
1 parent d95b41f commit 2389ae3

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

docs/Using/Custom_main.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ This guide explains how to include and use a `custom_main.js` file in your Elect
44

55
## Why use custom_main.js?
66

7-
- Add custom Electron features (global shortcuts, tray icons, menus, etc.)
7+
- Register custom protocol handlers (e.g., `myapp://`) — protocols must be registered before the app is fully initialized
88
- Integrate Node.js modules (e.g., telemetry, OS APIs)
99
- Control startup logic (abort, environment checks)
1010
- Set up IPC messaging or preload scripts

0 commit comments

Comments
 (0)