diff --git a/docs/fiddles/features/drag-and-drop/preload.js b/docs/fiddles/features/drag-and-drop/preload.js index 4609e12c7552..7e698ebb54ff 100644 --- a/docs/fiddles/features/drag-and-drop/preload.js +++ b/docs/fiddles/features/drag-and-drop/preload.js @@ -1,5 +1,4 @@ const { contextBridge, ipcRenderer } = require('electron') -const path = require('path') contextBridge.exposeInMainWorld('electron', { startDrag: (fileName) => { diff --git a/docs/tutorial/native-file-drag-drop.md b/docs/tutorial/native-file-drag-drop.md index 75ef4eb212cd..0b8b53321243 100644 --- a/docs/tutorial/native-file-drag-drop.md +++ b/docs/tutorial/native-file-drag-drop.md @@ -22,7 +22,6 @@ In `preload.js` use the [`contextBridge`] to inject a method `window.electron.st ```js const { contextBridge, ipcRenderer } = require('electron') -const path = require('path') contextBridge.exposeInMainWorld('electron', { startDrag: (fileName) => {