Skip to content

Commit 80cbe55

Browse files
committed
add more preload channels
1 parent d399a54 commit 80cbe55

File tree

1 file changed

+8
-7
lines changed

1 file changed

+8
-7
lines changed

preload.js

Lines changed: 8 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,16 @@ contextBridge.exposeInMainWorld("api", {
77
"toMain",
88
"check-for-update",
99
"confirm-clear-history",
10+
"export-collection",
11+
"fatalError",
12+
"import-collection",
1013
"import-proto",
11-
"quit-and-install",
12-
"protoParserFunc-request",
1314
"open-http",
1415
"open-gql",
15-
"import-collection",
16-
"export-collection",
17-
"open-http",
1816
"open-grpc",
17+
"protoParserFunc-request",
18+
"quit-and-install",
19+
"uncaughtException",
1920
];
2021
if (allowedChannels.includes(channel)) {
2122
ipcRenderer.send(channel, ...data);
@@ -28,11 +29,11 @@ contextBridge.exposeInMainWorld("api", {
2829
"fromMain",
2930
"add-collection",
3031
"clear-history-response",
31-
"proto-info",
3232
"message",
33+
"proto-info",
3334
"protoParserFunc-return",
34-
"reqResUpdate",
3535
"reply-gql",
36+
"reqResUpdate",
3637
];
3738
if (allowedChannels.includes(channel)) {
3839
ipcRenderer.on(channel, (event, ...args) => cb(...args));

0 commit comments

Comments
 (0)