docs: fix typo

This commit is contained in:
leejooy96 committed 2024-01-29 17:30:29 +09:00
1 parent e473c6da9f
commit a3765a0a71
3 files changed
+310 -778

No files matched your search

+306 -774
View File
File diff suppressed because it is too large. Load diff
+3 -3
View File
@@ -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"
}
}
+1 -1
View File
@@ -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.