diff --git a/docs/fiddles/features/drag-and-drop/preload.js b/docs/fiddles/features/drag-and-drop/preload.js index 4609e12c75528..7e698ebb54ff2 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 75ef4eb212cdc..0b8b533212431 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) => {