Skip to content
This repository has been archived by the owner on Aug 11, 2022. It is now read-only.

fix: typo #2079

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions content/ja-JP/docs/tutorial/context-isolation.md
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ window.myAPI.doAThing()

```javascript title='preload.js'
// ❌ 悪いコード
contextBridge.exposeInMainWorld('myAPI, {
contextBridge.exposeInMainWorld('myAPI', {
send: ipcRenderer.send
})
```
Expand All @@ -65,7 +65,7 @@ contextBridge.exposeInMainWorld('myAPI, {

```javascript title='preload.js'
// ✅ 良いコード
contextBridge.exposeInMainWorld('myAPI, {
contextBridge.exposeInMainWorld('myAPI', {
loadPreferences: () => ipcRenderer.invoke('load-prefs')
})
```
Expand Down