docs: fix typo
This commit is contained in:
1 parent
e473c6da9f
commit
a3765a0a71
3 files changed
+310
-778
No files matched your search
Generated
+306
-774
File diff suppressed because it is too large.
Load diff
+3
-3
@@ -13,8 +13,8 @@
|
||||
"node": ">=18.0.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"vitepress": "^1.0.0-rc.35",
|
||||
"vitepress-sidebar": "^1.18.0",
|
||||
"vue": "^3.3.9"
|
||||
"vitepress": "^1.0.0-rc.40",
|
||||
"vitepress-sidebar": "^1.18.6",
|
||||
"vue": "^3.4.15"
|
||||
}
|
||||
}
|
||||
@@ -8,7 +8,7 @@ For compatibility and security with the latest version of Electron, we do not re
|
||||
|
||||
Vutron's preload script is located in the `src/preload` folder. To create a new IPC communication channel, add the channel name to the following variable to whitelist it for communication.
|
||||
|
||||
- `mainAvailChannels`: Send an event from main to renderer. (`window.mainApi.send('channelName'')`)
|
||||
- `mainAvailChannels`: Send an event from main to renderer. (`window.mainApi.send('channelName')`)
|
||||
- `rendererAvailChannels`: Send an event from renderer to main. (`mainWindow.webContents.send('channelName')`)
|
||||
|
||||
When sending events from renderer to main, you access the `window.mainApi` object instead of `ipcRenderer.send`. The `mainApi` is the name you set in your Vutron template and can be changed.
|
||||
|
||||
Reference in new issue
Block a user