mirror of
https://github.com/XRPLF/xrpl-dev-portal.git
synced 2025-11-22 12:45:50 +00:00
Added instructions on which code to remove in Step 5
This commit is contained in:
@@ -941,7 +941,28 @@ contextBridge.exposeInMainWorld('electronAPI', {
|
|||||||
</dialog>
|
</dialog>
|
||||||
```
|
```
|
||||||
|
|
||||||
6. In `view/renderer.js` add at the top:
|
6. In `view/renderer.js`, replace the `openAccountAddressDialog` part at the top:
|
||||||
|
|
||||||
|
```javascript
|
||||||
|
// Remove the following section in Step 5
|
||||||
|
document.addEventListener('DOMContentLoaded', openAccountAddressDialog);
|
||||||
|
|
||||||
|
function openAccountAddressDialog(){
|
||||||
|
const accountAddressDialog = document.getElementById('account-address-dialog');
|
||||||
|
const accountAddressInput = accountAddressDialog.querySelector('input');
|
||||||
|
const submitButton = accountAddressDialog.querySelector('button[type="submit"]');
|
||||||
|
|
||||||
|
submitButton.addEventListener('click', () => {
|
||||||
|
const address = accountAddressInput.value;
|
||||||
|
window.electronAPI.onEnterAccountAddress(address)
|
||||||
|
accountAddressDialog.close()
|
||||||
|
});
|
||||||
|
|
||||||
|
accountAddressDialog.showModal()
|
||||||
|
}
|
||||||
|
```
|
||||||
|
|
||||||
|
With this code:
|
||||||
|
|
||||||
```javascript
|
```javascript
|
||||||
window.electronAPI.onOpenSeedDialog((_event) => {
|
window.electronAPI.onOpenSeedDialog((_event) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user