Skip to content

Commit

Permalink
chore: update ref to docs (🤖)
Browse files Browse the repository at this point in the history
  • Loading branch information
1 parent 47994c9 commit 6251b50
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 5 deletions.
2 changes: 1 addition & 1 deletion docs/latest/.sha
Original file line number Diff line number Diff line change
@@ -1 +1 @@
c538aa8e6cf2f34e74f6860138536bab84b74a02
600551766d0de3afe880c566dfce21ae03db6cd6
5 changes: 1 addition & 4 deletions docs/latest/tutorial/native-file-drag-drop.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,12 +29,9 @@ In `preload.js` use the [`contextBridge`][] to inject a method `window.electron.

```js
const { contextBridge, ipcRenderer } = require('electron')
const path = require('node:path')

contextBridge.exposeInMainWorld('electron', {
startDrag: (fileName) => {
ipcRenderer.send('ondragstart', path.join(process.cwd(), fileName))
}
startDrag: (fileName) => ipcRenderer.send('ondragstart', fileName)
})
```

Expand Down

0 comments on commit 6251b50

Please sign in to comment.