docs: removes unused import in preload script (#35333)

* Remove unused import of path

This import gives out the error in the preload script:

Error: module not found: path
    at preloadRequire

* Remove import path as it is not used in the script

note: Removes import path as it is not used in the script

Co-authored-by: Rhitik Bhatt <bhattrhitik95@gmail.com>
This commit is contained in:
trop[bot]
2022-08-15 17:07:13 +09:00
committed by GitHub
parent 6eabd3c72b
commit 7e6d0d4c3c
2 changed files with 0 additions and 2 deletions

View File

@@ -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) => {