Update content/tutorials/build-apps/build-a-desktop-wallet-in-javascript.md

Co-authored-by: Jackson Mills <aim4math@gmail.com>
This commit is contained in:
Alexander Busse
2023-08-07 11:32:14 +02:00
committed by GitHub
parent b86db485a7
commit a07e334bf6

View File

@@ -461,7 +461,9 @@ Here we define three utility functions that will transform data we receive from
2. Modify `index.js` and add `ipcMain` to the imports from the `require('electron')`line. Then add the new helper file at the bottom of the include section: 2. Modify `index.js` and add `ipcMain` to the imports from the `require('electron')`line. Then add the new helper file at the bottom of the include section:
```javascript ```javascript
// Step 3 code additions - start
const { app, BrowserWindow, ipcMain} = require('electron') const { app, BrowserWindow, ipcMain} = require('electron')
// Step 3 code additions - end
const path = require('path') const path = require('path')
const xrpl = require("xrpl") const xrpl = require("xrpl")
// Step 3 code additions - start // Step 3 code additions - start