Update README.md
This commit is contained in:
parent
ddf949f98b
commit
9359140dbe
|
@ -21,11 +21,11 @@ You need a basic understanding of `Electron` and `Vite` to get started. But that
|
||||||
npm create electron-vite
|
npm create electron-vite
|
||||||
```
|
```
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Debug
|
## Debug
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
## Directory structure
|
## Directory structure
|
||||||
|
|
||||||
|
@ -67,7 +67,7 @@ Once `dev` or `build` npm-script is executed, the `dist` folder will be generate
|
||||||
contextBridge.exposeInMainWorld("ipcRenderer", ipcRenderer);
|
contextBridge.exposeInMainWorld("ipcRenderer", ipcRenderer);
|
||||||
```
|
```
|
||||||
|
|
||||||
- **electron/renderer/src/global.d.ts**
|
- **src/global.d.ts**
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
// Defined in the window
|
// Defined in the window
|
||||||
|
@ -77,7 +77,7 @@ Once `dev` or `build` npm-script is executed, the `dist` folder will be generate
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
- **electron/renderer/src/main.ts**
|
- **src/main.ts**
|
||||||
|
|
||||||
```typescript
|
```typescript
|
||||||
// Use Electron and NodeJS API in the Renderer-process
|
// Use Electron and NodeJS API in the Renderer-process
|
||||||
|
|
Loading…
Reference in New Issue