-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* 🐛 Update autoUpdater to use checkForUpdatesAndNotify using checkForUpdates causes error (due to outdated interface usage) * Use tokenMap instead of harcoded values * Add docs to getAccounts * Remove redundant conditions * 🐛 Update webpack baseconfig Remove process overriding from base webpack config which induces unintended behaviour electron-updater require node.js process to work as intended * 🐛 Update ipc for bi-directional communication Create a safe, bi-directional, synchronous bridge across isolated contexts * ♻️ revert auto update and ipc filter change * Mute error messages for disabled commands * Resolve undefined data stored * ♻️ Fix eslint errors * ♻️ Add mainnet as default network at times the network might not be set, setting it to default which should be mainnet * ♻️ Show block height in btc trx details * ♻️ Show amount in btc transaction summary Co-authored-by: Manu Nelamane Siddalingegowda <manugowda.ns@gmail.com> Co-authored-by: reyraa <ali@lightcurve.io> Co-authored-by: Manu <ManuGowda@users.noreply.github.com>
- Loading branch information
1 parent
e8f7100
commit 9212dd8
Showing
11 changed files
with
54 additions
and
34 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,20 @@ | ||
/** | ||
* Add ipcRenderer to the window object | ||
*/ | ||
const ipcRenderer = window.require('electron').ipcRenderer; | ||
window.ipc = ipcRenderer; | ||
const { | ||
contextBridge, | ||
ipcRenderer, | ||
} = require('electron'); | ||
|
||
// Expose protected methods that allow the renderer process to use | ||
// the ipcRenderer without exposing the entire object | ||
contextBridge.exposeInMainWorld( | ||
'ipc', | ||
{ | ||
send: (channel, data) => { | ||
ipcRenderer.send(channel, data); | ||
}, | ||
on: (channel, func) => { | ||
ipcRenderer.on(channel, (event, ...args) => { | ||
func(event, ...args); | ||
}); | ||
}, | ||
}, | ||
); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters