Skip to content

Commit 6251b50

Browse files
chore: update ref to docs (🤖)
1 parent 47994c9 commit 6251b50

File tree

2 files changed

+2
-5
lines changed

2 files changed

+2
-5
lines changed

‎docs/latest/.sha

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
c538aa8e6cf2f34e74f6860138536bab84b74a02
1+
600551766d0de3afe880c566dfce21ae03db6cd6

‎docs/latest/tutorial/native-file-drag-drop.md

+1-4
Original file line numberDiff line numberDiff line change
@@ -29,12 +29,9 @@ In `preload.js` use the [`contextBridge`][] to inject a method `window.electron.
2929

3030
```js
3131
const { contextBridge, ipcRenderer } = require('electron')
32-
const path = require('node:path')
3332

3433
contextBridge.exposeInMainWorld('electron', {
35-
startDrag: (fileName) => {
36-
ipcRenderer.send('ondragstart', path.join(process.cwd(), fileName))
37-
}
34+
startDrag: (fileName) => ipcRenderer.send('ondragstart', fileName)
3835
})
3936
```
4037

0 commit comments

Comments
 (0)